[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Possible display bug with editable QTreeWidgetItem on Linux
From: Vincent Michel <vxgmichel () gmail ! com>
Date: 2014-09-10 8:03:25
Message-ID: 1410336205.2424.8.camel () vincent-GE70-2PC
[Download RAW message or body]
I tried with several different styles:
(cleanlooks, windows, motif, platinium, cde, plastique...)
and they all seem to work perfectly.
But the native style on my system is GTK, and this:
python pyqt_test.py -style gtk
produces the same problem I described.
So yes, it definitely seems like this issue comes from the GTK style.
Vincent
On Tue, 2014-09-09 at 21:07 +0200, David Boddie wrote:
> On Tue, 09 Sep 2014 10:02:26 +0200, Vincent Michel wrote:
>
> > I noticed a strange display bug when I ran a code using an editable
> > QTreeItemWidget on a Linux machine (this doesn't happen on Windows).
> >
> > While editing the widget, the previous value is still visible and messes
> > up with the new value that is being typed.
>
> Does the problem only occur with the native style? Which style is the
> native one on your system? Can you try it with another one by passing
> the -style option on the command line, like this example?
>
> python your_program.py -style cleanlooks
>
> You need to change your code to ensure that the command line arguments
> are processed by Qt:
>
> import sys
> from PyQt4 import QtCore, QtGui
> app = QtGui.QApplication(sys.argv)
> widget = QtGui.QTreeWidget()
> item = QtGui.QTreeWidgetItem(widget, ['x'*8])
> item.setFlags(QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsEnabled)
> widget.show()
> app.exec_()
>
> David
> _______________________________________________
> PyQt mailing list PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://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