Results 1 to 4 of 4

Thread: adding QAction to QDialog is not working

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Posts
    90
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    2

    Default adding QAction to QDialog is not working

    hi,
    I want to add QAction to my customized dialog inherited from QDialog.

    QDialog has addAction method to add actions to QDialog. But it seems that Qaction added is not visible on QDialog.

    This way i am creating QAction and adding it to QDialog :

    Qt Code:
    1. QAction *actCount = new QAction(QIcon(tr("English_en\\countonback.png")), tr("Count On / Back"), this);
    2. addAction( actCount );
    To copy to clipboard, switch view to plain text mode 

    Can anybody guide me what is wrong and how to do it.

    Thanks in advance

    Regards,
    ~Sanjay
    Last edited by jpn; 13th August 2008 at 15:04. Reason: missing [code] tags

Similar Threads

  1. Replies: 11
    Last Post: 31st May 2007, 01:11

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.