Fix for qxBlogModelView example pro file

You find a bug using QxOrm library and you know how to fix it : submit a patch on this forum

Fix for qxBlogModelView example pro file

Postby aaron » Mon Jul 20, 2015 5:20 pm

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
aaron
 
Posts: 2
Joined: Mon Jul 20, 2015 5:12 pm

Re: Fix for qxBlogModelView example pro file

Postby qxorm » Tue Jul 21, 2015 8:03 am

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 ?
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am

Re: Fix for qxBlogModelView example pro file

Postby aaron » Tue Jul 21, 2015 9:04 pm

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.
aaron
 
Posts: 2
Joined: Mon Jul 20, 2015 5:12 pm


Return to QxOrm - Submit a patch

Who is online

Users browsing this forum: No registered users and 3 guests

cron