[Development] QTreeView: vertical bar between columns

Laszlo Papp lpapp at kde.org
Tue May 17 12:47:10 CEST 2022


On Tue, May 17, 2022 at 11:34 AM André Somers <andre at familiesomers.nl>
wrote:

>
> On 17-05-2022 12:12, Laszlo Papp wrote:
>
>
>
> On Tue, May 17, 2022 at 11:01 AM André Somers <andre at familiesomers.nl>
> wrote:
>
>> Hi,
>>
>> On 16-05-2022 23:26, Laszlo Papp wrote:
>> > Hi,
>> >
>> > Was just wondering if it was okay to add a property for drawing
>> > vertical bar between columns in the body of the QTreeView. Our
>> > customer has requested this as otherwise it was challenging to
>> > visually separate the columns.
>> >
>> > It looks like jpn had a fairly trivial paintEvent implementation for
>> > this, so should not be hard to add:
>> >
>> https://www.qtcentre.org/threads/8684-how-to-show-vertical-lines-between-colums
>> >
>> > Kind regards,
>> > László
>> >
>> Doesn't this belong in the style instead?
>>
>
> If you ask me, as much as QHeaderView's vertical bar. It is the same
> thing, just for the body. And that is also in Qt proper.
>
> I'd argue both belong in the style actually.
>

Sure, but that should have been argued long time ago (15+ years) when it
was added to QHeaderView in my opinion. Now, I feel like consistency is
better than ideal inconsistency.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20220517/5db3b1f8/attachment.htm>


More information about the Development mailing list