Results 1 to 4 of 4

Thread: [custom widget] What about private headers ?

  1. #1
    Join Date
    May 2006
    Posts
    55
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default [custom widget] What about private headers ?

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: [custom widget] What about private headers ?

    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.

  3. #3
    Join Date
    May 2006
    Posts
    55
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: [custom widget] What about private headers ?

    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.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: [custom widget] What about private headers ?

    It's not really "good practice", it's simply "a method to get away from introducing new methods in minor revisions".

Similar Threads

  1. We'll need a QT Jambi section!
    By GreyGeek in forum General Discussion
    Replies: 23
    Last Post: 30th September 2006, 00:38
  2. Link Errors
    By magikalpnoi in forum Qt Programming
    Replies: 5
    Last Post: 25th September 2006, 22:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.