摘要: 如果头文件中有多个类,带有Q_OBJECT的类要放在头文件的第一个类位置,否则可能无法moc 阅读全文
posted @ 2019-10-31 11:51 酷熊 阅读(541) 评论(1) 推荐(0) 编辑
摘要: QWidget* w = new QWidget(this); w->setGeometry(10,20,400,300); QVBoxLayout* layout = new QVBoxLayout(w); layout->setSpacing(0); layout->setContentMarg 阅读全文
posted @ 2019-10-31 10:47 酷熊 阅读(1096) 评论(0) 推荐(0) 编辑
摘要: setAttribute(Qt::WA_Mapped); 阅读全文
posted @ 2019-10-31 10:39 酷熊 阅读(296) 评论(0) 推荐(0) 编辑