Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Little typo on the doc
Forum Updated to NodeBB v4.3 + New Features

Little typo on the doc

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 3 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    doom_Oo7
    wrote on last edited by
    #1

    On this page :

    http://qt-project.org/doc/qt-5.1/qtprintsupport/qprintdialog.html

    It says :

    @#include <QPrintDialog>@

    but I did both a build of Qt5.1.1 using git, and a download of the Qt binaries on the website, and on the both cases, the print related sutff seems to be in :

    @#include <QtPrintSupport/QPrintDialog>@

    I think other print-related pages might be affected too, but I didn't find any way to leave a comment on the documentation pages ?

    Thanks!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      What happens when you add this to your pro file:
      @
      QT += printsupport
      @

      (Z(:^

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Hi,

        That is not a typo. Qt headers should not need to show the relevant subfolders.

        This is the recommended way of including Qt headers:
        @
        #include <QDialog>
        #include <QPrintDialog>
        @

        ...while this is also possible:
        @
        #include <QtWidgets/QDialog>
        #include <QtPrintSupport/QPrintDialog>
        @

        Have you added "QT += printsupport" to your .pro file? (You need to do this for all modules that you use, except Qt Core and Qt GUI)

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved