Results 1 to 3 of 3

Thread: QWidget::resize( QSize) destroys GUI

  1. #1
    Join Date
    Oct 2013
    Posts
    4
    Platforms
    Unix/X11 Windows

    Default QWidget::resize( QSize) destroys GUI

    Hello All,

    I have problem based on a resize() call since we have ported our Software from Qt4 to Qt5.
    If I call the resize method on my QMainWindow, the windowsize itself updates correctly unfortunetly the content doesn't.
    The content remains small and it looks like an overlap. I already tried to call update and repaint functions without success.

    Does someone have an idea why this happen?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWidget::resize( QSize) destroys GUI

    Have you used layouts properly in the mainwindow / central widget ?

  3. #3
    Join Date
    Mar 2014
    Posts
    23
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows Android

    Default Re: QWidget::resize( QSize) destroys GUI

    Is that UI built with Designer or in code?
    Best guess would be that your layouts are not set up properly. Also don't call update or repaint manually, they are scheduled after resizeEvent is fired anyway.

Similar Threads

  1. how to resize Qmainwindow with Qwidget ?
    By zeynepb.bil in forum Qt Programming
    Replies: 10
    Last Post: 28th September 2017, 23:48
  2. QWidget resize troubles
    By ilariari in forum Qt Programming
    Replies: 7
    Last Post: 22nd April 2015, 14:32
  3. How to disable resize in a QWidget
    By aguleo in forum Newbie
    Replies: 2
    Last Post: 17th February 2013, 20:58
  4. Resize QWidget in QMainWindow
    By aamer4yu in forum Qt Programming
    Replies: 1
    Last Post: 8th March 2007, 12:16
  5. Signals destroys my pointer
    By Jojo in forum Qt Programming
    Replies: 12
    Last Post: 7th March 2006, 21:05

Bookmarks

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.