Porting from QT4.6 to QT5
-
@Qt-Enthusiast said in Porting from QT4.6 to QT5:
I am using solution
I am using
QHeaderview* heade r = new QHeaderView
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
header->setStyle( new QFusionStyle );
#else
header->setStyle( new QCleanlooksStyle );
#endif
I am getting error: 'QFusionStyle' does not name a typeCan some use help in proper usage of fusion style
See here: http://doc.qt.io/qt-5/sourcebreaks.html#changes-to-qstyle
"
QFusionStyle is internal. Recommended alternatives:- QStyleFactory for creating instances of specific styles.
- QProxyStyle for customizing existing style implementations.
- QCommonStyle as a base for implementing full custom styles.
"
-
@Qt-Enthusiast said in Porting from QT4.6 to QT5:
header->setStyle( new QFusionStyle );
header->setStyle( "Fusion" ); // maybe for QApplication only // or header->setStyle( new QStyleFactory::create("Fusion" )); -
@mpergand said in Porting from QT4.6 to QT5:
new QStyleFactory::create("Fusion" )
its is not workingcan some one point me to a example how Qfusion style is being used in the Qt 5 code