Results 1 to 2 of 2

Thread: ListWidget select style

  1. #1
    Join Date
    Oct 2007
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default ListWidget select style

    hi,

    can anyone tell me how to change the style that Qt highlights an items,

    for example,
    i have a QListWidget, that contains a few items,
    when i single click an item it will highlight it, but, the highlight stops at the end of the items text. I want the highlight to be the length of the QListWidget rather than the length of the item.

    thanks,
    Philly

  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: ListWidget select style

    Try forcing the style of the list widget to QPlastiqueStyle or use QTreeWidget with a single column and hidden header.
    J-P Nurmi

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.