Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.15
-
None
Description
Populate a QListWidget (List mode) with some items so the vertical scrollbar appears.
If you scroll with PageUp/PageDown/Home/End, all is fine.
Now set several items at the top to hidden (but so that the scrollbar still visible).
Keyboard navigation will stop working afterwards.
Test case main.cpp to reproduce
#include <QtWidgets> int main(int argc, char* argv[]) { QApplication app(argc, argv); QListWidget w; for (int i = 0; i < 400; i++) new QListWidgetItem(QString::number(i) + " Line", &w); for (int i = 0; i < 20; i++) w.item(i)->setHidden(true); w.show(); return app.exec(); }