PDA

View Full Version : ListWidget select style



CopyrightPhilly
9th November 2007, 08:30
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

jpn
9th November 2007, 08:45
Try forcing the style of the list widget to QPlastiqueStyle or use QTreeWidget with a single column and hidden header.