Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.1
-
None
-
Using Qt 6.8.1 on Ubuntu 24.04
-
-
014e77801 (dev), d07a849e9 (6.9), 803a554d0 (6.8), 675afe02e (tqtc/lts-6.5)
Description
The attached C++ program creates a QFileDialog and tries to use findChild() to access the QDialogButtonBox, which is definitely a direct child.
Finding it as a QObject works, and the classname for the found object is "QDialogButtonBox" as expected. But finding it as a QDialogButtonBox (with or without the name) returns null.
The output is:
b1 = 0
b2 = 0
b3 = <valid address>
b3 classname = QDialogButtonBox
Attachments
For Gerrit Dashboard: QTBUG-133101 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
619635,3 | Fix detection of -fPIE code for QT_CONFIG(reduce_relocations) | dev | qt/qtbase | Status: MERGED | +2 | 0 |
622407,2 | Fix detection of -fPIE code for QT_CONFIG(reduce_relocations) | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
622449,2 | Fix detection of -fPIE code for QT_CONFIG(reduce_relocations) | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
622735,2 | Fix detection of -fPIE code for QT_CONFIG(reduce_relocations) | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |