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

UI is not shown after querying the screen geometry via QDesktopWidget in a QApplication

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.3.1
    • Labels:
      None
    • Environment:
      gentoo 64bit, and Qt 5.2.1 release version on bb z10 limited

      Description

      If you put this instruction:

      ((QApplication*)parent)->desktop()->screenGeometry().size();
      

      somewhere in your code (construction and so on), in any cpp file, it prevents UI from been shown on screen, but application still working, no freeze and works normally.
      I have just tried it, creating a new project and using Window and StackView object.

        Attachments

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

          Activity

            People

            Assignee:
            bomb3rman Fabian Bumberger
            Reporter:
            alterx Giovanni Romano
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes