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

CLONE - currentItemChanged() signal emits as soon as QTreeWidget gains focus + QTabWidget results in bad behaviour

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 4.6.0
    • 4.3.0, 4.8.5, 5.2.0
    • Widgets: Itemviews
    • None

    Description

      QTreeWidget::currentItemChanged() is emitted when the widget gains focus, and the first item in the list is set to be current item. A change of focus should not result in this signal being emitted.

      simple example with QListWidget:
      We use item views in tab widget:
      When we change tabs, item view in activated tab gains focus and selects item, emitting currentItemChanged signal. Expected behaviour is to not emit signal.

      Due to this signal calls the slot, that uses incorrect tab information(tabChanged signal emits after currentItemChanged)

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              kikaxa antony
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes