×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    8

    Problems with Pyside Qt and Stacked QMainWindow

    I'm trying to run a trivial example code written in Python-Qt (PySide). The application contains a button that should open a new QMainWindow with (automatically generated) back button inside the same application. Unfortunately it doesn't do that. It opens a completely new application window with no back button.

    Source code here:
    http://friendpaste.com/4Cm20xVTIaHvVqokpfVv3f

    Does anyone have any clue about what I'm missing here? Or could it be a bug in PySide implementation? It seems that the whole parent-child-connection between these two QMainWindows is missing.

    I'm using
    - libqt4 version 4.6.0
    - pyside-qt4 version 0.2.3

    Any help is greatly appreciated.

  2. #2
    Registered User
    Join Date
    Apr 2007
    Posts
    8

    Re: Problems with Pyside Qt and Stacked QMainWindow

    Resolved myself. It seems you have to set a Maemo5-specific attribute to each main window like this

    self.setAttribute(QtCore.Qt.WA_Maemo5StackedWindow)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×