Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93764

QPrintPreviewDialog: printer orientation not updated by QPageSetupDialog

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Commits:
      6ce44c53c7aa802b817b72d49de88e4da0181488 (qt/qtbase/dev) d8424686851ed843e2a799091895aa8d3a0e7645 (qt/qtbase/6.1) d9127da87ebd44ad034fed336a61c5dde63b23ac (qt/tqtc-qtbase/5.15) 35ec4c011ca9ed12ceec0c088c0e815210b38c33 (qt/qtbase/6.2)

      Description

      QPrintPreviewDialog printer seems to set a wrong orientation in some cases if it's set by QPageSetupDialog. Changing the orientation directly in the QPrintPreviewDialog using the actions "orientation" and "landscape" works fine.

      This can be reproduced with the "fontsampler" example.

      Steps to reproduce the problem:

      1. Check any font
      2. file > printpreview
      3. toggle the orientation in the dialog:
        1. landscape
        2. portrait
        3. landscape
      4. open page setup
      5. toggle the orientatoin
        1. portrait
        2. landscape
      6. "ok" to close the page setup dialog

      Now as a result the QPrintPreviewDialog will keep the correct orientation action checked BUT the actual orientation will be the opposite. Additionally now toggling the orientation in the QPrintPreviewDialog using the actions will be wrong i.e. portrait action changes the orientation to landscape and landscape does the opposite.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              vhilshei Volker Hilsheimer
              Reporter:
              miikapernu Miika Pernu
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes