1,布局管理器
candidates
error: no matching function for call to ‘QGridLayout::QGridLayout(MyWidget* const, int, int)’
QGridLayout *grid = new QGridLayout(this,3,2);
/opt/Qt5.4.1/5.4/gcc_64/include/QtWidgets/qgridlayout.h:57:14: note: candidate expects 1 argument, 3 provided
2,nested嵌套部件管理器
注意函数参数的not match
candidate expects 2 arguments, 4 provided,编译器提示----------------
QApplication::desktop()->width()和QApplication::desktop()-height(),从类的构造函数中调用this-width(),this->height()读取部件的宽度及高度;
separate---
Qt类文件和目录处理,Qt类读取文件内容
3,