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. Change QPrintDialog style
Forum Updated to NodeBB v4.3 + New Features

Change QPrintDialog style

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 708 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.
  • hooanghiepH Offline
    hooanghiepH Offline
    hooanghiep
    wrote on last edited by
    #1

    0_1557912801321_Screenshot from 2019-05-15 16-33-11.png
    How can i open QprintDialog in this style?

    Regards,
    Hiep

    Pl45m4P 1 Reply Last reply
    0
    • hooanghiepH hooanghiep

      0_1557912801321_Screenshot from 2019-05-15 16-33-11.png
      How can i open QprintDialog in this style?

      Regards,
      Hiep

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @hooanghiep

      If you dont want to use the default style / layout, I think you have to subclass it.

      Why the standard QPrintDialog is not enough?


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      hooanghiepH 1 Reply Last reply
      1
      • hooanghiepH Offline
        hooanghiepH Offline
        hooanghiep
        wrote on last edited by hooanghiep
        #3

        @Pl45m4
        Because of this : https://forum.qt.io/topic/102769/qprintdialog-can-not-set-custom-paper-size

        1 Reply Last reply
        0
        • Pl45m4P Pl45m4

          @hooanghiep

          If you dont want to use the default style / layout, I think you have to subclass it.

          Why the standard QPrintDialog is not enough?

          hooanghiepH Offline
          hooanghiepH Offline
          hooanghiep
          wrote on last edited by
          #4

          @Pl45m4 when i want to print a web page displaying on firefox i press Crtl+P then this dialog open.
          How can firefox do that?

          JonBJ 1 Reply Last reply
          0
          • hooanghiepH hooanghiep

            @Pl45m4 when i want to print a web page displaying on firefox i press Crtl+P then this dialog open.
            How can firefox do that?

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @hooanghiep
            What do you mean by "How can firefox do that?"? It's the standard OS print dialog, e.g. you could open it same from gedit, isn't that all there is to say?

            jsulmJ 1 Reply Last reply
            0
            • JonBJ JonB

              @hooanghiep
              What do you mean by "How can firefox do that?"? It's the standard OS print dialog, e.g. you could open it same from gedit, isn't that all there is to say?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by jsulm
              #6

              @JonB I think he wants to use the native print dialog. On Linux Qt own print dialog is used.
              "On Windows and macOS, the native print dialog is used"
              https://doc.qt.io/qt-5/qprintdialog.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              2

              • Login

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