Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-28

Can't get a QMainWindow from an application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 1.1.2
    • 1.1.0
    • PySide
    • None
    • Windows 7 x64, Python 2.7 (32-bit version).

    Description

      If an application has a QMainWindow, it appears that the only way to access it is as a QWidget. qApp.allWidgets() and qApp.topLevelWidgets() both return the main window as a QWidget, so the QMainWindow methods aren't accessible. Likewise, the parent() method of widgets parented by the QMainWindow return a QWidget instance, rather than a QMainWindow instance.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jbmoon Joe Moon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes