[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Qt 5.12 change in behaviour for table cells
From:       Barry Scott <barry () barrys-emacs ! org>
Date:       2019-02-17 15:42:32
Message-ID: FCBD1170-EE4B-4F92-A3EE-63FD0502E918 () barrys-emacs ! org
[Download RAW message or body]



> On 17 Feb 2019, at 15:09, Barry Scott <barry@barrys-emacs.org> wrote:
> 
> I've been testing with PyQt5 5.12.
> 
> All of the cells in a table that have text that is longer than can fit is being wrapped in the cell.
> Leading to two lines in one box.
> 
> Has anyone else seen this? Do you know what I do to fix it?

It seems that word wrap default has changed so this fixes it:

self.table_view = TableView( self.app )
self.table_view.setWordWrap( False )

In Qt 5.10 it does not matter what the value of setWordWrap is the
table cells are always elided.

Barry



> 
> Barry
> 
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic