Results 1 to 2 of 2

Thread: List Widget need help!

  1. #1
    Join Date
    Jul 2007
    Posts
    9
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy List Widget need help!

    I am using QT 4.3, i got 5 icon in a listwidget,
    Normal cases:
    when one icon is selected, the icon background change to dark blue and i click OK.
    QListWidgetItem * icon_A;
    if(ui.listwidget->isItemSelected(icon_A))
    {
    .....;
    }


    Error occur when:
    when one icon is selected, the icon background change to dark blue and i click some place near the icon and the dark blue disappear and left a dotted rectangle box around the icon.
    The isItemSelected(icon_A) no longer valid, any other function to detect i selected the dotted line rectangle box icon? Thanks in advance!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: List Widget need help!

    Try using currentItem().

Similar Threads

  1. Replies: 8
    Last Post: 1st October 2015, 07:23
  2. Forcing a minimum list widget width
    By MrGarbage in forum Qt Tools
    Replies: 1
    Last Post: 14th July 2007, 17:16
  3. Controlling which widget on top layer?
    By JonathanForQT4 in forum Qt Programming
    Replies: 6
    Last Post: 22nd March 2007, 14:27
  4. Custom widget in list view
    By fusoin23 in forum Qt Programming
    Replies: 1
    Last Post: 18th November 2006, 14:09
  5. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16

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.