Results 1 to 5 of 5

Thread: QT programing

  1. #1
    Join Date
    Mar 2012
    Posts
    2
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Post QT programing

    what is difference between in Qwidget and QmainWindow?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT programing

    QMainWindow is a subclass of QWidget that adds a menu bar, tool bars, status bar and dock widgets.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Default Re: QT programing

    Short answer is: QMainWindow is an specialized QWidget (specialized to be the main-window of an application - it has more "stuff" then QWidget: layout, menu, status-bar, toolbar)
    For detailed answer read documentation about QWidget and QMainWindow

  4. #4
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QT programing

    Wow! Great timing you two

  5. #5
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QT programing

    Quote Originally Posted by Spitfire View Post
    Wow! Great timing you two
    Great minds think alike. Sometimes even simultaneously.

Similar Threads

  1. Socket Programing on Layer 2
    By weaver4 in forum Qt Programming
    Replies: 1
    Last Post: 7th February 2012, 15:25
  2. Replies: 1
    Last Post: 22nd July 2011, 12:22
  3. Help in Qt Socket Programing in Windows 7?
    By dedy2000 in forum Newbie
    Replies: 2
    Last Post: 7th December 2009, 04:50
  4. gdb doubt for Qt programing
    By arjunasd in forum Qt Programming
    Replies: 4
    Last Post: 25th July 2007, 19:15

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.