Re: [PyQt] Catching mouseclicks outside QPopup

2008-02-22 Thread Giovanni Bajo
On 2/22/2008 7:28 PM, Peter Shinners wrote: I have a custom QTextEdit widget opened as a QPopup. How can my widget catch mouse clicks outside the widget area so it knows when to hide? I want the same behavior as clicking outside a QMenu or QComboBox popup. It seems like there would be some windo

[PyQt] Catching mouseclicks outside QPopup

2008-02-22 Thread Peter Shinners
I have a custom QTextEdit widget opened as a QPopup. How can my widget catch mouse clicks outside the widget area so it knows when to hide? I want the same behavior as clicking outside a QMenu or QComboBox popup. It seems like there would be some window flag I can set to do this automatically? I've

[PyQt] Bug ovverriding sizeHint

2008-02-22 Thread Giovanni Bajo
Hi, consider this snippet: === from PyQt4.Qt import * app = QApplication([]) w = QWidget() L = QVBoxLayout(w) L.addWidget(QLabel("ciao", w)) called_class = [] class MyScrollArea(QScrollArea): def sizeHint(self): called_class.append

[PyQt] How pass QListView data from postEvent?

2008-02-22 Thread Reinaldo de Carvalho
Hi, I have this design: pushButton1 call searchMethod that clear and insert data on listview1 The problem is that mainWidget stop reponse while searchMethod is running. I trying use threads to call searchMethod. The problem is that searchMethod do many updated on GUI, then cause "design problem"

[PyQt] [pykde3] Loading arbitrary kparts

2008-02-22 Thread jbd
Hello, I'm saw the following post : http://www.riverbankcomputing.com/pipermail/pyqt/2007-October/017367.html I'm sorry to post for the same subject again, but I still don't know how to load an arbitraty kparts depending on the URL. === import sys from kdecore import KCmdLineArgs, KApplicati

Re: [PyQt] konsoleFactory::className()

2008-02-22 Thread D.H.J. Takken
Ok, I guess I have to give up. No PyKDE on Gentoo Linux... > Hi, > > Can anyone please have a look at the modified configure.py that was > attached to the previous mail in this thread? > > Thanks! > > On Monday 21 January 2008 08:21:42 D.H.J. Takken wrote: > > Ok, I have been trying to get PyKDE

[PyQt] speed problem

2008-02-22 Thread Linos
Hello, i have created one pyqt app we are using in my company, it is warehouse application, any fast workers seems to be faster that application because of fast bar code scanners, they are introducing items in a QTableView with an internal QAbstractTableModel subclass and using QItemDelegate

[PyQt] Size problem

2008-02-22 Thread Alexandre Badez
Hy, I'm displaying some combo box in a table widget and it work quiet well. My problem is that I can't get that the column's size of the table is enough to see the max size of the combo. Here is a little sample: from PyQt4 import QtGui import sys app = QtGui.QApplication(sys.argv) table = QtGu