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

Uninitialized QPageLayout unit makes the whole page size invalid

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.11.0
    • 5.5.0, 5.6.0 Alpha
    • GUI: Printing
    • None
    • Cross platform bug.

    Description

      Default constructor of QPageLayout does not initialize units.
      This makes the whole page size invalid - based on random value.

      Nothing works if the default ctor is used, even setMargins() fails:

      QPageLayout layout;
      layout.setMargins(...); // <--
      

      Resolution: attached.

      A unit test for the case:
      QCOMPARE(QPageLayout().units(), QPageLayout::Point);

      Attachments

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

        Activity

          People

            tsdgeos_kdab Albert Astals Cid
            jstaniek Jaroslaw Staniek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes