Results 1 to 2 of 2

Thread: opening widgets in new window

  1. #1
    Join Date
    May 2011
    Posts
    39
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default opening widgets in new window

    I have all the stuff in my mainwindow: like plot,tableview,datawindow and it is looking untidy all in one single window.
    Now I want to display them in separate window or widget.for example plot in my separate widget and tableview in seprate widget..
    any idea how to do this please

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: opening widgets in new window

    Create a widget without a parent and call QWidget::show(). This is exactly what you do to create a QMainWindow for example.

Similar Threads

  1. opening a QTableView window with a pushbutton
    By willief in forum Qt Programming
    Replies: 4
    Last Post: 7th April 2011, 19:57
  2. opening a second window
    By benlyboy in forum Newbie
    Replies: 3
    Last Post: 2nd March 2010, 04:08
  3. Qt 4.6.0: Opening a dialog from a main window
    By dmginc in forum Qt Programming
    Replies: 3
    Last Post: 14th January 2010, 12:16
  4. Opening a new window
    By k12yp70n in forum Newbie
    Replies: 1
    Last Post: 26th March 2009, 15:31
  5. Arbitrary widgets placement in window.
    By someralex in forum Qt Programming
    Replies: 1
    Last Post: 20th December 2006, 12:14

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.