Results 1 to 2 of 2

Thread: Qmainwindow QWidget size

  1. #1
    Join Date
    Sep 2010
    Posts
    22
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Qmainwindow QWidget size

    How can i change the centralwidget's size without changing Mainwindow's size.
    I want MainWindow width: 300 height: 300
    centralWidget width: 500 hegiht: 500

    When i change geometry property of centralwidget, mainwindow's property changes automatically?
    Thank you

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Qmainwindow QWidget size

    You might want to set a scroll area as the central widget, then you can resize whatever content in the scroll area.

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. Replies: 2
    Last Post: 16th September 2010, 13:06
  3. QWidget on QMainWindow
    By jayreddy in forum Qt Programming
    Replies: 4
    Last Post: 6th January 2010, 08:27
  4. Replies: 2
    Last Post: 23rd March 2009, 17:26
  5. Resize QWidget in QMainWindow
    By aamer4yu in forum Qt Programming
    Replies: 1
    Last Post: 8th March 2007, 12:16

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.