Results 1 to 3 of 3

Thread: How to resize window with pushbutton

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: How to resize window with pushbutton

    You cannot put parameter values into the connect statement. You are only allowed to put possible parameter types, and in this case the parameter types must match. For further details, see Signals and Slots.

    What you need is most likely a custom slot. Connect the button's clicked() signal to that slot and do the resizing there. Again, for details, see the link above.

    Only widgets are resizable. See QWidget::resize(). You cannot resize QApplication as it's nothing visible.
    Last edited by jpn; 13th January 2007 at 13:21. Reason: oops, who posted it in the middle of editing..
    J-P Nurmi

Similar Threads

  1. Replies: 3
    Last Post: 23rd July 2006, 19:02
  2. Move window in Clone Mode
    By ultrabrite in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2006, 19:22
  3. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 11:21
  4. Main window
    By Michiel in forum Qt Tools
    Replies: 1
    Last Post: 21st March 2006, 00:54
  5. postponing resize event
    By Honestmath in forum Qt Programming
    Replies: 11
    Last Post: 26th February 2006, 01:32

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.