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

QDockWidget::setTitleBarWidget can make shortcuts stop working

    XMLWordPrintable

    Details

    • Commits:
      f30bf5fbd58c3fd67a98a1c759b63f24fbab8a41

      Description

      QDockWidget::setTitleBarWidget can prevent shortcuts from working. It happens if a dock widget has a QGraphicsView, for instance.

      An example has been attached where shortcut Qt::Key_1 will trigger message dialog. However, if one clicks on the red item in the graphics view (inside a dock widget), the shortcut cannot be activated afterwards.

        Attachments

        1. main.cpp
          1 kB
        2. main.pro
          0.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            netrom Morten Kristensen
            Reporter:
            netrom Morten Kristensen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes