Results 1 to 2 of 2

Thread: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??

  1. #1
    Join Date
    Jun 2010
    Posts
    26
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default What's the practical difference between QMessageBox, QDialogButtonBox, and QDialog ??

    I'm new to Qt and am trying to develop my first ever app in Qt ... I was trying to figure out whats the practical difference between QMessageBox, QDialogButtonBox, and QDialog (and also any other similar variants) .. ? The official documentation just lists all the technical aspects regarding these classes, but I was wondering, whats the difference between them ? For what purpose are each of these suited to ? Also, can anyone post any screenshots of any class implementations running on the N900 (like show separate pictures of onscreen QMessageBox, QDialogButtonBox, and QDialog running instances), so one can physically see what are the differences between them in terms of layout and capabilities ?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: What's the practical difference between QMessageBox, QDialogButtonBox, and QDialo

    One of the things that makes a great programmer is the ability for hem or her to find the information himself or herself. And if that's not possible, create test scenario's to study behaviour or techniques.
    And if that's not possible, ask smart questions.

    You did neither.

    The difference is clearly explained in the documentation.
    Now, the documentation is in English and you might not understand it all correctly. Then say so.

    A dialog is a basic dialog, it has no content.
    A dialog button box is a widget that contains a series of buttons that you can place on a dialog
    A message box is a dialog containing a message (label), and icon and some buttons.
    A file dialog is a dialog for opening and saving files, it's a dialog with contents
    ...

    You see, that's all explained in the documentation ;-)

Similar Threads

  1. Replies: 1
    Last Post: 8th January 2010, 11:45
  2. a QDialogButtonBox question
    By bnilsson in forum Qt Programming
    Replies: 3
    Last Post: 16th July 2008, 22:42
  3. Replies: 6
    Last Post: 25th February 2008, 21:18
  4. Practical Qt ebook anyone?
    By christopher in forum Qt Programming
    Replies: 8
    Last Post: 1st September 2006, 13:59
  5. Practical QTreeView: Advice needed
    By Jojo in forum Qt Programming
    Replies: 13
    Last Post: 20th February 2006, 20:28

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.