Results 1 to 2 of 2

Thread: Which widget should I use to get a normal program window?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    62
    Thanked 260 Times in 246 Posts

    Default Re: Which widget should I use to get a normal program window?

    I use QWidget or QMainWindow for that.
    But if you create a GUI project, Qt Creator automatically creates MainWindow witch is derived from QMainWindow.

    You can create a QWidget in witch you layout other stuff, and then MainWindow variable call setCentralWidget(your_widget).
    Hope i was clear enough...

  2. The following user says thank you to Zlatomir for this useful post:

    zoz (30th May 2010)

Similar Threads

  1. How to host the other process's window in a program?
    By tszzp in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2010, 10:34
  2. Start application minimized or normal
    By matze in forum Qt Programming
    Replies: 3
    Last Post: 12th January 2010, 14:57
  3. execute sth before program exits (user closes window)
    By donglebob in forum Qt Programming
    Replies: 6
    Last Post: 9th December 2008, 23:24
  4. Program that just shows a window
    By claudio-cit in forum Newbie
    Replies: 2
    Last Post: 5th July 2008, 09:55
  5. Difference between normal socket and QTcpSocket
    By ShaChris23 in forum Newbie
    Replies: 1
    Last Post: 16th June 2007, 04:38

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.