Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.5.0
-
None
-
windows
-
cb24903ef4df0571f8498fca6bc58f5df6dd68af
Description
If a Custom Widget with a Q_Property of type Qt::PenStyle like:
Q_PROPERTY( Qt::PenStyle borderStyle MEMBER m_borderStyle) is used with Qt Designer, the generated header contains the following line:
label->setProperty("style", QVariant(Qt::SolidLine));
This results in compile time error like:
error: C2248: 'QVariant::QVariant' : cannot access private member declared in class 'QVariant'
Attachments
For Gerrit Dashboard: QTBUG-49383 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
151779,4 | Generate QVariant::fromValue(enum_value) for enum values | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |