16,228
社区成员
发帖
与我相关
我的任务
分享
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Program w;
w.show();
return a.exec();
}
Program::Program(QWidget *parent) :
QWidget(parent)
{
this->setGeometry(0,0,g_nScreenWidth,g_nScreenHeight);
QFile file(":/titleWindow.qss");
if(!file.open(QIODevice::ReadOnly))
perror("fail to open qss:");
QString str = file.readAll();
qApp->setStyleSheet(str);
file.close();
CustomTitle *pCustom = new CustomTitle(this);
pCustom->show();
}
CustomTitle::CustomTitle(QWidget *parent) :
QWidget(parent)
{
filter = new Ui::FilterSetting;
filter->setupUi(this);
}