Results 1 to 1 of 1

Thread: In Python, stretching a QGraphicsView to size of parent after showFullScreen

  1. #1
    Join Date
    Jun 2016
    Qt products
    MacOS X Unix/X11

    Default In Python, stretching a QGraphicsView to size of parent after showFullScreen

    I have some code that looks beautiful on Linux and behaves as I wish. But on Mac OS X, everything I thought I was understanding about resizing a QGraphicsView within a QGroupBox is wrong. And it's wrong in different ways, depending upon whether I try to do it with a resizeEvent or with a QTimer.singleShot.

    I've attached a tarball with two main programs ( and plus their dependencies -- code that I've broken out of the main code into separate modules (,, and, and corresponding screenshots (Flyer8.png and frames4.png) of what they look like when run under Linux. Under Mac OS X, the QGraphicsView in both just show up as tiny rectangles within the full screen QDialog. The group boxes lay out correctly under both OSs.

    I don't speak C++. So, PySide (or PyQt) appreciated.

    Attached Files Attached Files
    Last edited by ubuntourist; 7th January 2017 at 01:41.

Similar Threads

  1. Replies: 5
    Last Post: 21st March 2016, 13:29
  2. Replies: 1
    Last Post: 9th February 2014, 14:52
  3. Embedding PyQt4 into an Application running Python via Boost::Python
    By GreyHound in forum Installation and Deployment
    Replies: 1
    Last Post: 6th February 2012, 07:48
  4. Resizing child widget on changing size of parent?
    By anupamgee in forum Qt Programming
    Replies: 3
    Last Post: 13th November 2009, 09:39
  5. Replies: 1
    Last Post: 14th May 2007, 15:55

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.