Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt: QListWidget separator line between items?

Tags:

qt

qlistwidget

I can't find any way to put a line between items in my list. Am I missing something?

like image 649
jbrennan Avatar asked Dec 07 '22 18:12

jbrennan


1 Answers

A style sheet would be easiest, for example:

myListWidget->setStyleSheet( "QListWidget::item { border-bottom: 1px solid black; }" );

You'll want to look at some of the style sheet documentation

like image 78
Chris Avatar answered Dec 09 '22 14:12

Chris