On Monday 12 February 2007 07:21, Tony Cappellini wrote:
> Perhaps I'm going about this wrong. I want to simulate the user
> selecting the first item (Or any item) in a combo box.
I think you may want to call setCurrentIndex() on the combo box.
> I don't need to pass it a text string, the string
Perhaps I'm going about this wrong. I want to simulate the user
selecting the first item (Or any item) in a combo box.
I don't need to pass it a text string, the strings are already in the
combo box. I just need to select it, so the signal I've connected to
the combo box activate signal gets fire
On Sat, 3 Feb 2007 22:45:57 -0800, Tony Cappellini wrote:
> I've tried to add a line of code to emit a signal.
>
> The sender is normally a combo box, the receiver is a Text Edit box.
> The connect statement (that works) looks like this
>
> self.connect(self.Names, QtCore.SIGNAL("activated(const Q
I've tried to add a line of code to emit a signal.
The sender is normally a combo box, the receiver is a Text Edit box.
The connect statement (that works) looks like this
self.connect(self.Names, QtCore.SIGNAL("activated(const QString &)"),
self.updateNameBrowser)
I want to 'simulate' the user