今天在编写一个简单的QT4的各类位置对话框的时候遇到一个错误:
QT中error:'((Geometry*)this)->Geometry::frameGeometry' cannot be used as a function
后来发现是因为自己定义的控件和类函数名字相同造成的,
然后在编译通过的时候,运行时没有出现各个控件,后来检查发现在布局控件的时候
layout = new QGdirLayout()的括号中没有添加 “this”
今天在编写一个简单的QT4的各类位置对话框的时候遇到一个错误:
QT中error:'((Geometry*)this)->Geometry::frameGeometry' cannot be used as a function
后来发现是因为自己定义的控件和类函数名字相同造成的,
然后在编译通过的时候,运行时没有出现各个控件,后来检查发现在布局控件的时候
layout = new QGdirLayout()的括号中没有添加 “this”