Results 1 to 7 of 7

Thread: QDialog resize ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Location
    England
    Posts
    56
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDialog resize ?

    Quote Originally Posted by wysota View Post
    A complete solution can be seen in the wiki: Expanding dialog.

    The trick is to put a size constraint on the top level layout.
    Sure, this makes the dialog expand and shrink, but now the user cannot change the size. I am trying to do this with a dialog containing text fields, and then resizing the dialog is a big benefit to the user. On windows using MFC we accepted solutions like this, but QT is supposed to be better. QT3 was better, the extension mechanism solved this problem. Sadly there appears to be no solution in QT4.

  2. #2
    Join Date
    May 2007
    Location
    England
    Posts
    56
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDialog resize ?

    I just noticed the old duo of setExtension and showExtension from QT3 does still exist and work in QT4.3.1!

    So no problem currently. Lets hope the Trolls provide a scaleable alternative before they remove the extension mechanism.

Similar Threads

  1. How to resize window with pushbutton
    By kaydknight in forum Newbie
    Replies: 2
    Last Post: 13th January 2007, 12:17
  2. Qdialog as a child widget
    By dave in forum Newbie
    Replies: 12
    Last Post: 14th November 2006, 09:43
  3. Replies: 1
    Last Post: 28th July 2006, 14:10
  4. postponing resize event
    By Honestmath in forum Qt Programming
    Replies: 11
    Last Post: 26th February 2006, 00:32
  5. How to get a QDockWidget to auto resize?
    By bitChanger in forum Qt Programming
    Replies: 4
    Last Post: 6th January 2006, 16:10

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
  •  
Qt is a trademark of The Qt Company.