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