EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: EpicsQt and Qtdesigner with Qt 5.7
From: <[email protected]>
To: <[email protected]>
Cc: [email protected]
Date: Fri, 1 Jul 2016 16:31:31 +0000

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

 


Navigate by Date:
Prev: RE: pcaspy with EPICS 3.15 Wang Xiaoqiang (PSI)
Next: RE: pcaspy with EPICS 3.15 Jameson Graef Rollins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: pcaspy with EPICS 3.15 Jameson Graef Rollins
Next: gddAppFuncTableStatus string Patrick Thomas
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·