[PySide] QColumView shows empty column after preview column

Frank Rueter frank at ohufx.com
Wed Sep 21 23:37:23 CEST 2022


Hmm, I still have not found an answer. My workaround is now to resize the
preview column via the resizeEvent but that feels really wrong.
E.g.:
    def resizeEvent(self, event):
        super().resizeEvent(event)
        self.setColumnWidths([30, 30, 100, self.parent().width()-160])


On Wed, Sep 21, 2022 at 8:26 AM Frank Rueter <frank at ohufx.com> wrote:

> Hi all,
>
> one more question about QColumnView:
> I keep getting an extra column after the preview column if I resize the
> widget wide enough. Is this a bug or by design?
> https://gist.github.com/frueter/7d325cfc990703c866dd98807aabc73c
> [image: image.png]
>
> Cheers,
> frank
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20220922/ec4fd6dd/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 21170 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20220922/ec4fd6dd/attachment-0001.png>


More information about the PySide mailing list