[Interest] QFileDialog Qt5
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Wed Dec 16 16:24:18 CET 2015
Il 16/12/2015 14:10, Duane ha scritto:
> I'm subclassing a QFileDialog. I need to get a pointer to the filename
> box. I was doing this with findChild<QLineEdit*>() with Qt4 but with
> Qt5 this returns null. Any suggestions?
Where are you doing that findChild? A non-native QFileDialog is lazily
populated. Typically you need to wait until a show event gets delivered
and handled by it to be sure you'll have the widgets created.
Random notes:
1) As many others have told you, this may be symptomatic of bad design...
2) That's an API abuse, hence totally unsupported and can break again at
any time.
HTH,
--
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - The Qt Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4068 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151216/8585b286/attachment.bin>
More information about the Interest
mailing list