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 <fr...@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@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest -- Jake Petroules - jake.petrou...@qt.io The Qt Company - Silicon Valley Qbs build tool evangelist - qbs.io _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest