[Development] Sending key events on Qt 5.5.0

Christian.Paffhausen at ehrhardt-partner.com Christian.Paffhausen at ehrhardt-partner.com
Thu Sep 17 11:26:07 CEST 2015


Hi again,

forget the attachment.... sry!

Regards
Christian

(See attached file: SendEventExample.zip)

Mit freundlichen Grüßen / Best regards

Ehrhardt + Partner GmbH & Co. KG

i.A. Christian Paffhausen
Software Developer

Development Group User Interfaces

******************************************
Ehrhardt + Partner GmbH & Co. KG
Software - Systeme für Warehouse - Logistik
Alte Roemerstrasse 3
D-56154 Boppard-Buchholz
Handelsregister Koblenz HRA 4605
GF Marco Ehrhardt
Tel. : (+49) 67 42 / 87 27 0
Fax : (+49) 67 42 / 87 27 50
E-Mail: info at ehrhardt-partner.com
Internet: www.ehrhardt-partner.com

(Embedded image moved to file: pic30370.jpg)




From:	Christian Paffhausen/Standort 1/EUP
To:	development at qt-project.org
Date:	17.09.2015 11:21
Subject:	Sending key events on Qt 5.5.0


Hi all,

i have a problem with manually sending key events and shortcuts on Qt
5.5.0.

In our application, we have a QAction with a F5 shortcut in a toolbar. When
i press the toolbutton everything works fine. When i press the F5 key on my
keyboard too.
But when i press a pushbutton, where the connected slot generate a
QKeyEvent and send this event via QApplication::sendEvent nothing will
happen.
With Qt 5.4.1 it works, but with 5.5.0 not.

I have attached a small example app, which describes my problem.

Is this problem already known? Have you a patch or work around for me?

Thanks in advance.

Regards
Christian


-------------------------------------------------------------------

Mit freundlichen Grüßen / Best regards

Ehrhardt + Partner GmbH & Co. KG

i.A. Christian Paffhausen
Software Developer

Development Group User Interfaces

******************************************
Ehrhardt + Partner GmbH & Co. KG
Software - Systeme für Warehouse - Logistik
Alte Roemerstrasse 3
D-56154 Boppard-Buchholz
Handelsregister Koblenz HRA 4605
GF Marco Ehrhardt
Tel. : (+49) 67 42 / 87 27 0
Fax : (+49) 67 42 / 87 27 50
E-Mail: info at ehrhardt-partner.com
Internet: www.ehrhardt-partner.com

(Embedded image moved to file: pic15198.jpg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SendEventExample.zip
Type: application/zip
Size: 2276 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150917/28247291/attachment.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic30370.jpg
Type: image/jpeg
Size: 41363 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150917/28247291/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic15198.jpg
Type: image/jpeg
Size: 41363 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150917/28247291/attachment-0001.jpg>


More information about the Development mailing list