Results 1 to 2 of 2

Thread: I failed to catch QMenu triggered signal, is it even possible?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Location
    Lithuania
    Posts
    16
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default I failed to catch QMenu triggered signal, is it even possible?

    Signals are only accesible through menu bar sub-menu, I am creating little program and I can't do one-click "About" button on Menu Bar without sub-menus.

    Where problem could be?

    It is working:
    Qt Code:
    1. void MainWindowImpl::on_actionCh_triggered()
    2. {
    3. qDebug("just for test...");
    4. }
    To copy to clipboard, switch view to plain text mode 

    Non-working:
    Qt Code:
    1. void MainWindowImpl::on_menuChh_triggered()
    2. {
    3. qDebug("just for test...");
    4. }
    To copy to clipboard, switch view to plain text mode 

    QAction inherits QMenu, and triggered signal exists for both classes.
    Last edited by wysota; 29th February 2008 at 23:00. Reason: reformatted to look better

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.