QtExamples/QtCustomStyleEx/main.cpp
touwoyimuli 054148433a feat:添加一个自定义风格的类
class:ExCustomStyle的类,但是里面是空白的,为后面更新的控件风格作为一个基准
2019-08-26 21:23:26 +08:00

25 lines
534 B
C++

#include "Examples.h"
#include <QApplication>
#include <QStyleFactory>
#include <QDebug>
#include "ExCustomStyle.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//使用系统或者自定义的风格
// QStringList listStyle = QStyleFactory::keys();
// foreach(QString val, listStyle)
// qDebug()<<val<<" ";
// QStyleFactory::create("Fusion");
// ExCustomStyle* customStyle = new ExCustomStyle;
// qApp->setStyle(customStyle);
Examples w;
w.show();
return a.exec();
}