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. Can QPageSetupDialog "Format For:" printer be programmatically set?
Forum Updated to NodeBB v4.3 + New Features

Can QPageSetupDialog "Format For:" printer be programmatically set?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.0k 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.
  • - Offline
    - Offline
    --marc
    wrote on last edited by
    #1

    I have a label printer which is not the default page printer. The system default printer is an inkjet page printer.

    I am trying to create a "Label Printer Setup" button which programmatically has the non-default label printer as the initially selected as the "Format For:" printer in the dialog.

    The following code is from one of various approaches which i tried that have not worked ...
    [code]
    QPrinter myLabeler = new QPrinter(myLabelerQPrinterInfo,
    QPrinter::HighResolution);
    QPageSetupDialog myLabelerSetupDialog( myLabeler );
    if (myLabelerSetupDialog.exec()) {
    ...
    }
    [/code]

    So far, the system default ink jet printer instead of the label printer has always shown as the initially selected "Format For:" printer.

    Can QPageSetupDialog "Format For:" printer be programmatically set for the dialog? If yes, then how?

    I'm currently developing this application on OS X 10.8.5 with Qt 5.1.1.

    1 Reply Last reply
    0
    • - Offline
      - Offline
      --marc
      wrote on last edited by
      #2

      OK. ... then it looks like a bug.

      I reported the issue with test code and screen shot here:

      --> https://bugreports.qt-project.org/browse/QTBUG-34450

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fredrossperry
        wrote on last edited by
        #3

        Did you ever resolve this? I am getting the same issue in 5.4.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          fredrossperry
          wrote on last edited by
          #4

          Did you ever resolve this? I am getting the same issue in 5.4.

          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