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

QListWidget: scrollbars doest update properly when hiding items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.6.0
    • 4.4.0
    • Widgets: Itemviews
    • None
    • 6c1388ee5a3c4796d7ce09f0cbbc1700ab574ce4

      When you have hidden items in an QListWidget, the scrollbar and the mouse wheel still act as if no items where hidden.

      Test case main.cpp to reproduce
      ================================
      #include <QtGui>

      int main(int argc, char** argv)
      {
      QApplication app(argc, argv);
      QListWidget w;

      for( int i = 0; i < 400; i++ )

      { QListWidgetItem* item = new QListWidgetItem( QString::number(i)+" Line", &w ); }

      for( int i = 0; i < w.count(); i++ )
      w.setItemHidden(w.item, true);

      foreach( QListWidgetItem* item, w.findItems("39", Qt::MatchContains))

      { w.setItemHidden(item,false); }

      w.show();
      return app.exec();
      }

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

            dedietri Gabriel de Dietrich (drgvond)
            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes