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