[PySide] QListWidgetItem selection border too large

Frank Rueter | OHUfx frank at ohufx.com
Tue Apr 4 11:54:33 CEST 2017


Hi,

I have two QListWidgets living in a QSplitter.
I need the items to be editable.
Some of the item labels are longer than the visible label.
When I edit one, it's selection border extends right across the splitter 
like this:


It seems that the selection box is as large as the longest item label in 
the list.

How can I control this so it stays within it's own splitter space?

Attached is the sample code.

Cheers,
frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20170404/5228c191/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2017-04-04 at 9.50.55 PM.png
Type: image/png
Size: 43458 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20170404/5228c191/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FileAnalyserUI.py
Type: text/x-python-script
Size: 3596 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20170404/5228c191/attachment.bin>


More information about the PySide mailing list