Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-25669

QMenuBar::triggered(QAction*) is fired twice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 4.8.1, 5.0.0, 5.8.0
    • The bug occurs with Linux (ArchLinux with kernel 3.0.25) and with Windows (Windows 7 64).

    Description

      When creating a QMenuBar with QActions in it (without QMenu), the QMenuBar::triggered(QAction*) signal can get fired twice, depending on the QAction.

      See also another (closed) related issue QTBUG-6741

      Test code is provided. Clicking on the first QAction prints "Triggered" once, clicking on the second one prints "Triggered" twice.

      Attachments

        1. main.h
          0.5 kB
        2. qtbug25669.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            yulong.bai Bai Yulong
            pintoch Berthe Lapapotte
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes