Hello!
I am trying to add history collecting to a QComboBox. I tried
connecting to the signals (activated, currentIndexChanged), but that's
not enough, since I can't control in what order this signal is servied
by other listeners. This is especially a problem, since other object
needs recent
Hi Phil,
with SIP 4.7.6, PyQt 4.2.2, Qt 4.4.0:
import sip
import weakref
from PyQt4.Qt import *
class MyWidget(QWidget):
def sizeHint(self):
return QSize(900, 700)
app = QApplication([])
ws = MyWidget(None)
wr = weakref.ref(ws)
L =
Filip Gruszczyński ha scritto:
Therefore I need to add
new information to the history earlier - but I have no idea, how to do
it. Anyone knows, which method should I override? I checked class
refference, but found nothing.
For example, you can use userData attribute in the addItem() method or
For example, you can use userData attribute in the addItem() method or the
setItemData() method to store the information needed and the findData method
to find an item or an index with needed data. More information on the
QComboBox Class Reference.
I don't think it solves my problem. What I
Oh, and I could just override hidePopup() but that's just not the
right place. It should be in just the place, where user hits
enter/left key and new option in the combo box is chosen.
But I will use hidePopup() unless I find something better :-/
2008/7/3 Filip Gruszczyński [EMAIL PROTECTED]:
Filip Gruszczyński ha scritto:
Therefore I need to intercept the event when user chooses new option
in the combo box, add information to the history and then let the rest
happen (like emitting signals). I can't just intercept a signal,
because I have no control over order of interception.
Should that also be necessary if I have it installed from debian packages?
Because I have the same error from the version I got via debian testing.
I think that should be handled by the pyQt4 postinstall script, personally.
On Sun, May 18, 2008 at 5:11 AM, Detlev Offenbach
[EMAIL PROTECTED]
Hi,
Debian screwed up their packages. There was a posting from Gudjon I.
Gudjonsson about this fact.
Detlev
On Donnerstag, 3. Juli 2008, Alan Ezust wrote:
Should that also be necessary if I have it installed from debian packages?
Because I have the same error from the version I got via
Sorry, I don't understand correctly your desire... :)
I want ComboBox to keep history of user's choices and allow access to
this history at any point with up to date information.
--
Filip Gruszczyński
___
PyQt mailing list
I have created such class:
class QComboBoxExt(QComboBox):
def mouseReleaseEvent(self, event):
print release
QComboBox.mouseReleaseEvent(self, event)
However mouseReleaseEvent is never called. I have checked
qcombobox.cpp/h and mousePressEvent is both
10 matches
Mail list logo