If I hide any item of QListWidget then scroll does not work properly. Any workaround?
If I hide any item of QListWidget then scroll does not work properly. Any workaround?
Thanks,
Rahul Kulshreshtha
Please choose Notification type as "Instant Email Notification". It must be default.
Hi,
Instead to hide the item you should hide the row... try to use: QListView::setRowHidden as follow:
int row = listWidget->row(itemToHide);
listWidget->setRowHidden(row, true);
I have just done a minimal app and I ran it on desktop.
setRowHidden worked fine for me.
takeItem and insertItem worked
takeItem - instead of hiding the item it removes the item from list -- Alternative for me for hiding item
insertItem - inserts the item again in list -- Alternative for me of showing item
Thanks,
Rahul Kulshreshtha
Please choose Notification type as "Instant Email Notification". It must be default.
I'm wondering on which platform are u running your code.. since setRowHidden has worked fine for me...
setRowHidden doesn¨t work on symbian I guess you should report it as bug.
yes I am on symbian
Reported the bug
http://bugreports.qt.nokia.com/browse/QTBUG-15614
Thanks,
Rahul Kulshreshtha
Please choose Notification type as "Instant Email Notification". It must be default.