054148433a
class:ExCustomStyle的类,但是里面是空白的,为后面更新的控件风格作为一个基准
25 lines
534 B
C++
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();
|
|
}
|