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

QPrintDialog

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 445 Views
  • 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.
  • M Offline
    M Offline
    minjunkim
    wrote on last edited by
    #1

    hi, can i set geometry of QPrintDialog?

    below is my code.

    QPrinter printer;
    
    QPrintDialog dialog(&printer, this);
    dialog.setWindowTitle(tr("Print Document"));
    dialog.addEnabledOption(QAbstractPrintDialog::PrintSelection);
    
    dialog.setGeometry(0,0,1000,1000); // it is not working.
    
    dialog.exec(); 
    

    i did the same working by using subclassing. but it is not working too.

    jsulmJ 1 Reply Last reply
    0
    • M minjunkim

      hi, can i set geometry of QPrintDialog?

      below is my code.

      QPrinter printer;
      
      QPrintDialog dialog(&printer, this);
      dialog.setWindowTitle(tr("Print Document"));
      dialog.addEnabledOption(QAbstractPrintDialog::PrintSelection);
      
      dialog.setGeometry(0,0,1000,1000); // it is not working.
      
      dialog.exec(); 
      

      i did the same working by using subclassing. but it is not working too.

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

      @minjunkim On which OS do you execute this code?
      QPrintDialog shows the native OS print dialog, on Windows 10 for example print dialog has fixed size.

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

      M 1 Reply Last reply
      3
      • jsulmJ jsulm

        @minjunkim On which OS do you execute this code?
        QPrintDialog shows the native OS print dialog, on Windows 10 for example print dialog has fixed size.

        M Offline
        M Offline
        minjunkim
        wrote on last edited by
        #3

        @jsulm

        Thank you for your reply.

        i'm using Windows 10 OS.

        Then, Can I set dialog start position?

        jsulmJ 1 Reply Last reply
        0
        • M minjunkim

          @jsulm

          Thank you for your reply.

          i'm using Windows 10 OS.

          Then, Can I set dialog start position?

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

          @minjunkim https://doc.qt.io/qt-5/qwidget.html#move-1

          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