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

2014-03-11 Thread igor.mironchik
Hi.

I’ve just found that QLineEdit doesn’t have c-tor with QLineEditPrivate* (as 
QWidget with QWidgetPrivate*).

And now I don’t know how to add some functionality to my subclass of QLineEdit.

Is it possible to acces QLineEditPrivate* from QLineEdit’s subclass??? Help!!!

P.S. Modifications to Qt code do not offer, please...

Thanks.___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


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

2014-03-11 Thread Giuseppe D'Angelo

Il 11/03/2014 20:23, igor.mironc...@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_castQLineEditPrivate *(QWidgetPrivate::get(this));

HTH,
--
Join us Oct 6-8 at BCC Berlin for Qt Developer Days 2014!
Giuseppe D'Angelo | giuseppe.dang...@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



smime.p7s
Description: Firma crittografica S/MIME
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


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

2014-03-11 Thread Giuseppe D'Angelo

Il 11/03/2014 20:23, igor.mironc...@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_castQLineEditPrivate *(QWidgetPrivate::get(this));

HTH,
--
Join us Oct 6-8 at BCC Berlin for Qt Developer Days 2014!
Giuseppe D'Angelo | giuseppe.dang...@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



smime.p7s
Description: Firma crittografica S/MIME
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest