Hello,
I thought your EpicsQt team may be interested in a strange bug with designer’s UI files when I compiled under Qt5.7 (everything else seemed to work just fine). This does not happen with Qt5.5 which, I believe, is the current version.
My workflow is as follows:
I use designer to layout EqpicsQt widgets and save the ui file
I add the ui form to my .pro. Qmake then generates a .h file
I include that .h form in my code, etc, etc
When I compiled my forms on a machine with Qt5.7, they crashed. The error was from the converted designer file:
ui_mv2_epicsDisplay.h:184:106: required from here
|
|
C:\Qt\Qt5.5.1min\5.5\mingw492_32\include/QtCore/qglobal.h:703:85: error: invalid application of 'sizeof' to incomplete
type 'QStaticAssertFailure<false>'
|
|
enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) = sizeof(QStaticAssertFailure<!!(Condition)>)}
|
|
^
|
|
C:\Qt\Qt5.5.1min\5.5\mingw492_32\include/QtCore/qglobal.h:708:47: note: in expansion of macro 'Q_STATIC_ASSERT'
|
|
#define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition)
|
I looked and this is caused by QeSimpleShape function
QESimpleShape::Never and QVariant
qesimpleshape_13->setProperty("displayAlarmStateOption",
QVariant(QESimpleShape::Never));
This is fine in 5.5 but 5.7 wants you to add
Q_DECLARE_METATYPE() information
Hope this is useful.
Regards,
Rory
Rory Clarke
Electrical and Controls Systems Group
Daresbury Laboratory
Keckwick Lane
Warrington
Cheshire
WA4 4AD
E:
[email protected]
T:
01925 60 Ext. 3172