Results 1 to 2 of 2

Thread: QListWidgetItem boundary box only but not highlighted

  1. #1
    Join Date
    Aug 2008
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QListWidgetItem boundary box only but not highlighted

    I'm currently using Qt 4.3.3 on Windows XP 32 bit. I have a QListWidget with the signal currentItemChanged. My QListWidget has a lot of items in it and I have to scroll down to reach items further down the list. Everything is working as expected whenever I select a QListWidgetItem by mouse click or the D-pad. For this list, I can only select a maximum of one item at a time.

    Whenever I select a items from the QListWidget without scrolling down, the selected item gets highlighted normally. However,

    1)If I select an item
    2)then scroll down until I can't see my initial selection
    3)select another item in the list

    I can see the selection boundary of my current item but it's not highlighted. Any ideas what I might be missing?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QListWidgetItem boundary box only but not highlighted

    I can't reproduce the problem with Qt/X11 4.4.0:
    Qt Code:
    1. #include <QtGui>
    2.  
    3. int main(int argc, char* argv[])
    4. {
    5. QApplication app(argc, argv);
    6. QListWidget listWidget;
    7. for (int i = 0; i < 100; ++i)
    8. listWidget.addItem(QString::number(i));
    9. listWidget.show();
    10. return app.exec();
    11. }
    To copy to clipboard, switch view to plain text mode 
    Can you reproduce the problem with such minimal compilable example?
    J-P Nurmi

Similar Threads

  1. Check Box problem
    By Seema Rao in forum Qt Programming
    Replies: 6
    Last Post: 30th November 2007, 20:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.