PDA

View Full Version : Remove the withe perforated rectangle in the QListWidgetItem



metRo_
31st October 2010, 19:14
anyonw know how to remove the withe perforated rectangle in the QListWidgetItem!?

http://img257.imageshack.us/img257/1253/errolist.png

ChrisW67
1st November 2010, 00:12
QListWidget::currentItem(), QListWidget::takeItem(), and delete seem like obvious starting points.

metRo_
1st November 2010, 02:27
i just want to remove the white rectangle, if i do setFocusPolicy(Qt::NoFocus) the rectangle disapear but i can't use the keyboard, up and down to navigate!

ChrisW67
1st November 2010, 03:49
I cannot see the obvious way to disable the current item border with stylesheets although I expect it is in there somewhere.

If you take away the current item border then how are you going to tell which is the current item?

aamer4yu
1st November 2010, 06:01
You will need to use custom delegate or style.
Search the forum , this problem has been posted many times.