Hello,
I'm having trouble with the database example from chapter 13 of the book. Is it due to an error in the Qt header file?
.../include/qtsql/../../src/sql/models/qsqlrelationaldelegate.h
which is included by the header file, QtSql.
There's a (#ifdef QT_GUI_LIB) statement at line 27 that doesn't appear to be defined anywhere in the Qt installation directory.
I'm not aware of a need for a QT_GUI_LIB preprocessor directive. However, creating one makes the problem go away ... properly building the example.
BTW another (#ifdef QT_GUI_LIB) statement is found at line 153 of file:
.../include/qtsql/../../src/tools/qtestlib/src/qtest.h
Thanks,
Ben
Bookmarks