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

If two tabs each have a QListWidget, selecting an item in one changes currentRow() and currentItem() in the other

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.2
    • None
    • Win7 SP1 x86. Happens on MSVC2015 and MinGW7
    • Windows

    Description

      I had a long description for this report, and my browser crashed.  Also, I notice I've reported a dozen bugs and enhancements, and only two have been fixed.  I think many will graduate to being closed without anything being done; due to lack of activity.  This seems to be how a lot are closed these days.

      Here's the short version: Attached is a project made with QtCreator.  It has a QTabWidget with two tabs.  Each tab body has a QListWidget.  If you switch between the tabs, the currentChanged() slot prints currentRow() and currentItem() for each list.  They both start out as -1 for both lists.  If you simply select an item in listWidget, currentRow() and currentItem() unexpectedly change to zero in listWidget_2 - when listWidget_2 hasn't been interacted with.  This is unexpected, counter-intuitive, and required my recoding of my routines.  Also, it was causing a currentChanged() event to fire, where none should have occurred, that was messing me up.

      Also, the help should reflect that these values can be -1, and can be set to same.

      Attachments

        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
            codelurker Code Lurker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes