Results 1 to 6 of 6

Thread: Where are those headers?

  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Where are those headers?

    Hello,
    I am checking out the example codes about adding accelerated graphics drivers to QtEmbedded 4.4.3. They reside in the qt source in "qt-embedded-linux-opensource-src-4.4.3/src/plugins/gfxdrivers/" folder. Some of these driver codes needs includes like:
    Qt Code:
    1. #include <private/qpaintengine_raster_p.h>
    2. #include <private/qwindowsurface_qws_p.h>
    3. #include <QtGui/private/qpixmapdatafactory_p.h>
    4. #include <QtGui/private/qwssignalhandler_p.h>
    To copy to clipboard, switch view to plain text mode 

    I compiled qt for my embedded ppc platform and installed. But Qt didn't create that "private" folder and related headers.

    What does "private" folder mean? Should i change my configure options for Qt to create these libraries and headers? Anybody, any idea?

    Thanks in advance...

  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: Where are those headers?

    Private headers are not deployed after the compilation. They are only needed to build Qt.

  3. #3
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Where are those headers?

    Ok, i see.. Then if i wanna create a custom driver for my gpu, i should recompile all Qt source together with my driver code, right?

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Where are those headers?

    Probably your driver shouldn't include Qt's private headers in the first place...
    J-P Nurmi

  5. #5
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Where are those headers?

    But; they(private headers) are used in Accelerated Graphics Driver Example. Shouldn't i take that example as a reference for my own driver..

  6. #6
    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: Where are those headers?

    Let's see...

    Quote Originally Posted by docs
    Note the include statement used by this class. The files prefixed with private/ are private headers file within Qt for Embedded Linux. Private header files are not part of the standard installation and are only present while compiling Qt. To be able to compile using private header files you need to use a qmake binary within a compiled Qt for Embedded Linux package.

    Warning: Private header files may change without notice between releases.
    If you want to make changes in Qt itself, you patch Qt files and rebuild them. If you want to extend what Qt does in a particular project, you do that via the public API if available.

  7. The following user says thank you to wysota for this useful post:

    yagabey (17th January 2009)

Similar Threads

  1. spaning the headers in the QTableView
    By ru_core in forum Qt Programming
    Replies: 6
    Last Post: 11th June 2013, 14:17
  2. Installing headers
    By MathStuf in forum Qt Programming
    Replies: 2
    Last Post: 30th June 2008, 12:05
  3. deleting selected headers
    By ru_core in forum Qt Programming
    Replies: 3
    Last Post: 16th April 2008, 08:53
  4. How to make headers fixed sized? (QTableWidget)
    By macias in forum Qt Programming
    Replies: 4
    Last Post: 13th August 2007, 16:57
  5. [custom widget] What about private headers ?
    By lauranger in forum Qt Programming
    Replies: 3
    Last Post: 19th November 2006, 00:14

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.