Results 1 to 4 of 4

Thread: use of popup window

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    21
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default use of popup window

    hello friends

    actually i want to use popwindow instead of messagebox in my app..so i dont know whether there is a facilities of using popup in qt..please anyone suggest me…

    regards
    rahul

  2. #2
    Join Date
    Jun 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: use of popup window

    Hello,

    QMessageBox inherits QDialog. You can create your own 'popups' by also deriving a class from QDialog to provide your functionality.

    Regards

  3. #3
    Join Date
    May 2011
    Posts
    21
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: use of popup window

    how that can be done...can u show me with simple example..

  4. #4
    Join Date
    Jun 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: use of popup window

    first hit in google:

    http://www.civilnet.cn/book/embedded...2lev1sec1.html

    basically:
    Qt Code:
    1. // mydialog.h
    2. #include <QDialog>
    3. class MyDialog : public QDialog {
    4. Q_OBJECT
    5. public:
    6. MyDialog(QWidget *parent = 0);
    7.  
    8. };
    9.  
    10. // mydialog.cpp
    11. #include "mydialog.h"
    12.  
    13. MyDialog::MyDialog(QWidget *parent) : QWidget(parent)
    14. {
    15. }
    To copy to clipboard, switch view to plain text mode 

    and then add whatever you want to have in your dialog such as buttons, labels, tableviews, ...

Similar Threads

  1. Replies: 12
    Last Post: 1st May 2011, 11:38
  2. how to set popup window at the different position
    By xiongxiongchuan in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2011, 08:07
  3. Replies: 2
    Last Post: 17th February 2011, 12:30
  4. Popup window explorer
    By dorians58 in forum Newbie
    Replies: 3
    Last Post: 23rd July 2010, 05:26
  5. Replies: 2
    Last Post: 10th December 2009, 07:01

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.