Fix for qxBlogModelView example pro file
Posted:
Mon Jul 20, 2015 5:20 pm
by aaron
Needed to add QT += widgets when using Qt 5 for the example to build; otherwise a linker error occurred with the Qt libraries.
- Code: Select all
greaterThan(QT_MAJOR_VERSION, 4) {
QT += quick
QT += qml
QT += widgets
} else {
QT += declarative
}
See also
https://forum.qt.io/topic/25076/solved- ... ference-to
Re: Fix for qxBlogModelView example pro file
Posted:
Tue Jul 21, 2015 8:03 am
by qxorm
Hello,
Thx for your patch
But it is strange because the
qxBlogModelView.pro project file includes
QxOrm.pri config file.
And in the
QxOrm.pri file, you have the
QT += widgets line :
- Code: Select all
CONFIG(QX_NO_QT_GUI) { QT -= gui }
else {
DEFINES += _QX_QT_GUI_DEPENDENCY
greaterThan(QT_MAJOR_VERSION, 4) { QT += widgets }
} # CONFIG(QX_NO_QT_GUI)
So I think :
- you changed
qxBlogModelView.pro project file removing the inclusion of
QxOrm.pri file ?
- or you have defined
QX_NO_QT_GUI compilation option ?
Am I right ?
Re: Fix for qxBlogModelView example pro file
Posted:
Tue Jul 21, 2015 9:04 pm
by aaron
Oops! Yes, it was the QX_NO_QT_GUI option. I should have searched for where QT += widgets could be elsewhere. Thanks for the kind note.