• 5837阅读
  • 2回复

关于Dial类 [复制链接]

上一主题 下一主题
离线kelas
 
只看楼主 倒序阅读 楼主  发表于: 2010-10-23
— 本帖被 XChinux 执行加亮操作(2010-10-23) —
callNumber = new QLineEdit(this);
dialDialog = new Dial( callNumber->text(),this, "dial");
这个类参数类型怎么解释?
查阅相关手册:
QDial::QDial ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 )
Constructs a dial called name with parent parent. f is propagated to the QWidget constructor. It has the default range of a QRangeControl.
QDial::QDial ( int minValue, int maxValue, int pageStep, int value, QWidget * parent = 0, const char * name = 0 )
Constructs a dial called name with parent parent. The dial's value can never be smaller than minValue or greater than maxValue. Its page step size is pageStep, and its initial value is value.
value is forced to be within the legal range.
请问一下dialDialog = new Dial( callNumber->text(),this, "dial");这句话对应的参数是什么?
离线dbzhang800

只看该作者 1楼 发表于: 2010-10-23
你这个 Dial 和 Qt中的 QDial 没有任何关系。估计是你自己写的 QDialog 的一个派生类
离线kelas
只看该作者 2楼 发表于: 2010-10-23
回 1楼(dbzhang800) 的帖子
呵呵,看了后面的代码才知道。
谢谢哈。
快速回复
限100 字节
 
上一个 下一个