Results 1 to 3 of 3

Thread: How to resize a QMainWindow in QWorkspace.

  1. #1
    Join Date
    Jun 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default How to resize a QMainWindow in QWorkspace.

    I've tried to programmatically Maximise a QMainWindow in QWorkspace but I cannot get the equivalant of the user hitting the maximise button. Thoughts?

    I've tried setWindowState, but that always leaves the title bar on the internal window. I've looked at posting a WindowStateChangeEvent but that hasn't worked so far.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to resize a QMainWindow in QWorkspace.

    Did you try calling showMaximized() on the child window?

  3. #3
    Join Date
    Jun 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to resize a QMainWindow in QWorkspace.

    Thankyou, that works. I did look for a setMaximised or just maximise call, somehow totally missed showMaximised.

Similar Threads

  1. Unable to resize a QCanvas.
    By yellowmat in forum Newbie
    Replies: 2
    Last Post: 21st June 2006, 12:52
  2. MDI windows without QWorkspace
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 16th June 2006, 17:15
  3. Retrieving offsets of scroll in QWorkspace
    By hardgeus in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 02:25
  4. postponing resize event
    By Honestmath in forum Qt Programming
    Replies: 11
    Last Post: 26th February 2006, 00:32
  5. Replies: 18
    Last Post: 22nd February 2006, 20:51

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.