[Interest] How to access QLineEditPrivate* in QLineEdit's subclass?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Tue Mar 11 19:35:35 CET 2014


Il 11/03/2014 20:23, igor.mironchik at gmail.com ha scritto:
> Is it possible to acces QLineEditPrivate* from QLineEdit’s subclass???
> Help!!!

Why are you willing to go into private headers (which offer no 
guarantees of compatibility at all) and not willing to submit a patch 
that adds the missing constructor?

Anyhow: you can try

 > static_cast<QLineEditPrivate *>(QWidgetPrivate::get(this));

HTH,
-- 
Join us Oct 6-8 at BCC Berlin for Qt Developer Days 2014!
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Software Engineer
KDAB (UK) Ltd., a KDAB Group company
Tel. UK +44-1738-450410, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4048 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140311/23e18847/attachment.bin>


More information about the Interest mailing list