Results 1 to 2 of 2

Thread: Open a QMainWindow Object in QDialog Object

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Open a QMainWindow Object in QDialog Object

    I wanna open QMainWindow Object in QDialog Object:
    in the login in dialog,as u see:
    main dialog is a QDialog Object called frmlogin:
    after close the main dialog,the QMainWindow called frmMain will appear.

    this is the simply source,
    Qt Code:
    1. this->close(); // close the main dialog
    2. frmMain mainwindow(this);
    3. mainwindow.show(); //show the QMainWindow
    To copy to clipboard, switch view to plain text mode 

    as u see,The mainwindow never appear.How can i do to let it work well?


    thank for u all.
    Last edited by jpn; 13th June 2008 at 20:50. Reason: missing [code] tags

Similar Threads

  1. QMainWindow child of a QDialog
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 16th January 2008, 07:16

Tags for this Thread

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.