QtTableView column width reset to 100px with Qt 5.9.4

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

QtTableView column width reset to 100px with Qt 5.9.4

Barry Scott
It seems that a change in Qt 5.9.4 has meant that QtTableView column widths
get set to the default of 100px after the app get focus.

I set the width in the __init__ to suitable values. But once drawn then all set to the same 100px.
This also happens if I resize the columns using the mouse. Once focus is lost and restored
the columns widths change to 100px.

On the off chance that one of you has seen this do you know what I have to do to fix it?

Barry

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: QtTableView column width reset to 100px with Qt 5.9.4

Florian Bruhin
Hi,

On Mon, Feb 12, 2018 at 07:47:24PM +0000, Barry Scott wrote:
> It seems that a change in Qt 5.9.4 has meant that QtTableView column widths
> get set to the default of 100px after the app get focus.
>
> I set the width in the __init__ to suitable values. But once drawn then all set to the same 100px.
> This also happens if I resize the columns using the mouse. Once focus is lost and restored
> the columns widths change to 100px.
>
> On the off chance that one of you has seen this do you know what I have to do to fix it?

I've seen something similar reported with QTreeView for Qt 5.11 but
haven't had time to look into it yet:

https://github.com/qutebrowser/qutebrowser/issues/3447

I found 2 Qt bugs which might be related:

https://bugreports.qt.io/browse/QTBUG-66245
https://bugreports.qt.io/browse/QTBUG-65478

Florian

--
https://www.qutebrowser.org | [hidden email] (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: QtTableView column width reset to 100px with Qt 5.9.4

Barry Scott


> On 12 Feb 2018, at 20:19, Florian Bruhin <[hidden email]> wrote:
>
> Hi,
>
>> On Mon, Feb 12, 2018 at 07:47:24PM +0000, Barry Scott wrote:
>> It seems that a change in Qt 5.9.4 has meant that QtTableView column widths
>> get set to the default of 100px after the app get focus.
>>
>> I set the width in the __init__ to suitable values. But once drawn then all set to the same 100px.
>> This also happens if I resize the columns using the mouse. Once focus is lost and restored
>> the columns widths change to 100px.
>>
>> On the off chance that one of you has seen this do you know what I have to do to fix it?
>
> I've seen something similar reported with QTreeView for Qt 5.11 but
> haven't had time to look into it yet:
>
> https://github.com/qutebrowser/qutebrowser/issues/3447
>
> I found 2 Qt bugs which might be related:
>
> https://bugreports.qt.io/browse/QTBUG-66245
> https://bugreports.qt.io/browse/QTBUG-65478
>
> Florian

Thank you for the pointers. I will report back as i work the issue.

Barry


> --
> https://www.qutebrowser.org | [hidden email] (Mail/XMPP)
>   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>         I love long mails! | https://email.is-not-s.ms/

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: QtTableView column width reset to 100px with Qt 5.9.4

Barry Scott
On Tuesday, 13 February 2018 08:15:08 GMT Barry wrote:

> > On 12 Feb 2018, at 20:19, Florian Bruhin <[hidden email]> wrote:
> >
> > Hi,
> >
> >> On Mon, Feb 12, 2018 at 07:47:24PM +0000, Barry Scott wrote:
> >> It seems that a change in Qt 5.9.4 has meant that QtTableView column
> >> widths
> >> get set to the default of 100px after the app get focus.
> >>
> >> I set the width in the __init__ to suitable values. But once drawn then
> >> all set to the same 100px. This also happens if I resize the columns
> >> using the mouse. Once focus is lost and restored the columns widths
> >> change to 100px.
> >>
> >> On the off chance that one of you has seen this do you know what I have
> >> to do to fix it?>
> > I've seen something similar reported with QTreeView for Qt 5.11 but
> > haven't had time to look into it yet:
> >
> > https://github.com/qutebrowser/qutebrowser/issues/3447
> >
> > I found 2 Qt bugs which might be related:
> >
> > https://bugreports.qt.io/browse/QTBUG-66245


> > https://bugreports.qt.io/browse/QTBUG-65478

65478 was updated to claim that the problem is really fixed for 5.9.5.

I have raised to ask Fedora to package 5.9.5 to ship this fix.

https://bugzilla.redhat.com/show_bug.cgi?id=1544957

Barry



_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt