Results 1 to 6 of 6

Thread: close application window

Threaded View

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

    Default close application window

    Qt Code:
    1. myproject::myproject(QWidget *parent, Qt::WFlags flags): QMainWindow(parent, flags)
    2. {
    3. ui.setupUi(this);
    4. start();
    5.  
    6. }
    To copy to clipboard, switch view to plain text mode 


    how can i close widget window from the method??

    Qt Code:
    1. void myproject::start()
    2.  
    3. {
    4.  
    5. ui.centralwidget.close()
    6. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by seltra; 7th October 2010 at 19:19.

Similar Threads

  1. Replies: 9
    Last Post: 16th May 2010, 16:21
  2. Replies: 1
    Last Post: 19th April 2010, 07:19
  3. Replies: 4
    Last Post: 3rd October 2009, 08:19
  4. close window signal
    By jano_alex_es in forum Newbie
    Replies: 5
    Last Post: 22nd May 2009, 10:10
  5. How to close parent window from child window?
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 14th October 2008, 11:40

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.