[Qt-jambi-interest] QComboBox + signals
Curt Nowak
cnowak at bwl.uni-hildesheim.de
Tue Aug 19 12:38:28 CEST 2008
Sorry about those links in my last mail. (Copy&Paste mistake)
Also, don't forget to set the focusPolicy of your ComboBox correctly. (See Qt.FocusPolicy)
________________________________
Von: qt-jambi-interest-bounces at trolltech.com im Auftrag von Curt Nowak
Gesendet: Di 19.08.2008 12:34
An: qt-jambi-interest at trolltech.com
Betreff: Re: [Qt-jambi-interest] QComboBox + signals
Hi Florian,
the first idea that pops into my head is to
* subclass QComboBox and to
* overwrite protected void focusInEvent(QFocusEvent <file:///D:/java/qt/qtjambi-win32-gpl-4.4.0_01/doc/html/com/trolltech/qt/gui/QFocusEvent.html> arg__1)
into something like
protected void focusInEvent(QFocusEvent <file:///D:/java/qt/qtjambi-win32-gpl-4.4.0_01/doc/html/com/trolltech/qt/gui/QFocusEvent.html> arg__1){
mySignal.emit(...);
super.focusInEvent(QFocusEvent <file:///D:/java/qt/qtjambi-win32-gpl-4.4.0_01/doc/html/com/trolltech/qt/gui/QFocusEvent.html> arg__1);
}
That should do. Cheers,
Curt
________________________________
Von: qt-jambi-interest-bounces at trolltech.com im Auftrag von Florian Hübner
Gesendet: Di 19.08.2008 12:25
An: qt-jambi-interest at trolltech.com
Betreff: [Qt-jambi-interest] QComboBox + signals
Hi everyone,
I try to send a signal whenever a QComboBox receives focus but I
couldn't find out how to do it. Anybody know an easy way for that?
best regards
Florian
_______________________________________________
Qt-jambi-interest mailing list
Qt-jambi-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
_______________________________________________
Qt-jambi-interest mailing list
Qt-jambi-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
More information about the Qt-jambi-interest
mailing list