Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
None
-
6.0.0
-
None
Description
On Windows, Qt Designer crashes in QMetaProperty::read() ( qtbug82945.zip
, qtbug82945_stack.txt) and
Linux is valgrind-clean; MinGW WIndows also is not affected.
QPushButton w(qVersion()); auto mo = w.metaObject(); int idx = mo->indexOfProperty("shortcut"); // QKeySequence from QtGui (!) qDebug() << idx; qDebug() << mo->property(idx).read(&w);
I heard rumours that there is some lazy metatype registration or similar; is there some code that is run at library load time, which may work differently on Windows?
Note: It works for QSizePolicy though, that is maybe it is related to the QKeySequence meta type registration changes due to the QAction split?
See comment of 8.4.2020, it looks like some compiler bug that for some reason only manifests within widgets. It disappeared at some time in MSVC 2019 16.6, but unfortunately re-appeared in 16.6.
Attachments
Issue Links
- relates to
-
QTBUG-75670 moc: use new meta-type id system in meta-objects
- Closed
-
QTBUG-82403 MSVC errors out on recent exported extern template QMetaTypeForType
- Open
-
QTBUG-83600 Invalid property assignment: "horizontalCenter" is a read-only property
- Closed
-
QTBUG-84416 tst_qqmlproperty crash on msvc2019 developer build
- Closed