Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor rahul.kulshreshtha's Avatar
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277
    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.

  2. #2
    Nokia Developer Moderator gnuton's Avatar
    Join Date
    Mar 2009
    Posts
    1,024
    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);

  3. #3
    Regular Contributor rahul.kulshreshtha's Avatar
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277
    Quote Originally Posted by gnuton View Post
    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);
    Not working
    Thanks,
    Rahul Kulshreshtha
    Please choose Notification type as "Instant Email Notification". It must be default.

  4. #4
    Nokia Developer Moderator gnuton's Avatar
    Join Date
    Mar 2009
    Posts
    1,024
    I have just done a minimal app and I ran it on desktop.
    setRowHidden worked fine for me.

  5. #5
    Regular Contributor rahul.kulshreshtha's Avatar
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277
    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.

  6. #6
    Nokia Developer Moderator gnuton's Avatar
    Join Date
    Mar 2009
    Posts
    1,024
    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.

  7. #7
    Regular Contributor rahul.kulshreshtha's Avatar
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277
    Quote Originally Posted by gnuton View Post
    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.

Similar Threads

  1. Replies: 6
    Last Post: 2010-12-03, 14:46
  2. Multiline items in QListWidget
    By pavel_turbin in forum Qt
    Replies: 2
    Last Post: 2010-07-10, 20:26
  3. QListWidget - owner drawn items
    By tamhanna in forum Qt
    Replies: 4
    Last Post: 2010-04-28, 09:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved