PDA

View Full Version : [custom widget] What about private headers ?



lauranger
18th November 2006, 20:23
Hi
I have several question in this post :
At worked, we are on Windows and the Qt private headers are accessible.
At home, i am on a gentoo and Qt private headers are not left after install.
->It might be more difficult to debug without headers (even private), no ?
->Which installation "is" right ?
I like the way Qt separates interface from implementation details with
the private parts. And I would like to do the same for "my own" widgets.
->Is there a way eased by Qt tools ? As Q_D is reserved to Qt developpers,
we can't use it even though it is practical.
->Should I write the same king of functions/methods and macros ?
Thanks in advance.

Laurent G.

wysota
18th November 2006, 21:17
Things which are in private implementations should be of no concern to you. The whole thing is used to help maintain binary compatibility between releases. If you really need to know the structure of the private implementation, download Qt sources and look there - you'll have all the header files at hand.

Unfortunately, if you want to mimic the private implementation - you have to provide your own infrastructure, Qt won't let you use the one built into it.

lauranger
18th November 2006, 22:58
Thanks Wysota.
So it is fully like I was seeing the thing. Too bad they don't let us
follow their good practice more easily.
Regards.

wysota
19th November 2006, 00:14
It's not really "good practice", it's simply "a method to get away from introducing new methods in minor revisions".