Unsolved Porting from QT4.6 to QT5
-
@Qt-Enthusiast said in Porting from QT4.6 to QT5:
It is giving me an error that not able to find file QtWebKitWidgets .
can some one help me in solving the problem
-
I am using solution
#include <QtWebKit/QtWebKit>
#include <QtWebKitWidgets/QtWebKitWidgets>is that solution Ok
-
@Qt-Enthusiast Why not simply
#include <QWebView> ```?
-
@Qt-Enthusiast said in Porting from QT4.6 to QT5:
is that solution Ok
Did you read the link I gave you?
-
yesI read that from there only I found out and I wanted to confirm the same
-
@Qt-Enthusiast said in Porting from QT4.6 to QT5:
yesI read that from there only I found out and I wanted to confirm the same
You don't need to ask to confirm. You can confirm yourself by trying it.
-
QStyleOptionViewItemV4' is deprecated , what should be the solution to fix this
fatal error: QCleanlooksStyle: No such file or directory
compilation terminated.how to solve these errors
-
@Qt-Enthusiast
Hi
You can use QStyleOptionViewItem directly.QCleanlooksStyle is worse. why does app need its includes ?
You can compile the old style plugin by yourself, but now is a good
opportunity to get rid of it. So please tell why app needs it.Any how, its all explained here
http://doc.qt.io/qt-5/sourcebreaks.html
read Changes to QStyle
It also says how to get it back if needed. -
error: 'QFusionStyle' does not name a type
59 hdr->setStyle( new QFusionStyle );I included the file QTwidgets
not working Need help again
-
@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
-
setStyle(QStyleFactory::create("Fusion")); // without new
For me (OSX), it works only with QApplication, not with QWidget