[Bug 157785] New: KComboBox's returnPressed signals not working
Amroth
e9.amroth at gmail.com
Wed Feb 13 14:35:53 GMT 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=157785
Summary: KComboBox's returnPressed signals not working
Product: kde
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: unassigned-bugs kde org
ReportedBy: e9.amroth gmail com
Version: (using Devel)
Installed from: Compiled sources
Compiler: gcc version 4.2.1 (SUSE Linux)
OS: Linux
I am using a KComboBox with popup completion to enter an email address, but also allow to use the popup to choose another email from a predefined list.
I then connected the KComboBox's "returnPressed()" signal to a slot in my class; but when I press the enter/return key, no signal is emitted; there is no debug message in my console output (all debug areas are enabled from kde4's kdebugdialog) and my method isn't called.
That's the same with the returnPressed(const QString &) signal.
However, connecting my slot to the internal QLineEdit works as intended, typing the Enter key calls my slot.
two examples to clarify. This doesn't work:
> connect( handleCombobox_, SIGNAL( returnPressed() ),
> this, SLOT ( updateView() ) );
The slot is never called and no debug message is output to console.
This does work:
> connect( handleCombobox_->lineEdit(), SIGNAL( returnPressed() ),
> this, SLOT ( updateView() ) );
The API clearly states the presence of these signals in KComboBox: http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKComboBox.html
I looked at the source it should emit at least one of these two signals when the KComboBox has a line edit and is enabled, but I have an enabled QLineEdit into the combobox and they are not emitted at press of the enter key.
More information about the Unassigned-bugs
mailing list