Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Does QPrintDialog open the system print dialog?
Forum Updated to NodeBB v4.3 + New Features

Does QPrintDialog open the system print dialog?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qprintdialognative dialog
4 Posts 4 Posters 1.4k Views 2 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.
  • S Offline
    S Offline
    stevej
    wrote on 16 Jul 2017, 16:08 last edited by
    #1

    Re: Accessing system printer preferences dialog using c++ In this topic SGaist suggests the QPrintDialog class opens the OS official print dialog. I am using QPrintDialog on the Mint Cinnamon desktop, and the dialog that opens is not the same as the dialog opened by the installed applications (like GEdit). The QPrintDialog dialog has fewer controls, for example. I need the extra controls, and want the dialog the user is accustomed to.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Fuel
      wrote on 16 Jul 2017, 17:20 last edited by
      #2

      You can build your own Dialog. Just create your own Class and inherit from QPrintDialog and add your own Controls you want.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        artwaw
        wrote on 16 Jul 2017, 18:01 last edited by
        #3

        Hi,
        documentation states that:
        The printer dialog (shown above in Plastique style) enables access to common printing properties. On X11 platforms that use the CUPS printing system, the settings for each available printer can be modified via the dialog's Properties push button.

        On Windows and macOS, the native print dialog is used, which means that some QWidget and QDialog properties set on the dialog won't be respected.

        Therefore you really ask about...?

        For more information please re-read.

        Kind Regards,
        Artur

        1 Reply Last reply
        2
        • R Offline
          R Offline
          RokeJulianLockhart
          wrote about 13 hours ago last edited by RokeJulianLockhart
          #4

          @stevej, see post/529035:

          On Windows and macOS, the native print dialog is used, which means that some QWidget and QDialog properties set on the dialog won't be respected.

          I can confirm on Linux that it utilises its own modal. I don't believe that a portal exists for this yet.

          When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

          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