[Interest] QListWidgetItem selection border too large

Jake Petroules Jake.Petroules at qt.io
Wed Apr 5 02:01:42 CEST 2017

Which version of Qt are you using? I believe this was fixed by https://codereview.qt-project.org/#/c/150307/ in Qt 5.6. See also https://bugreports.qt.io/browse/QTBUG-50645

> On Apr 4, 2017, at 1:59 PM, Frank Rueter | OHUfx <frank at ohufx.com> wrote:
> 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:
> <Mail Attachment.png>
> 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?
> When I open it in a host app that bundles it's own PySide (and has it's one style sheet for all widgets), this problem does not occur, so I'm hoping there is a simple solution here.
> Attached is the sample code.
> Cheers,
> frank
> <FileAnalyserUI.py>_______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

Jake Petroules - jake.petroules at qt.io
The Qt Company - Silicon Valley
Qbs build tool evangelist - qbs.io

More information about the Interest mailing list