Ctrl key accelerator issues in Qt/MFC integration
I am currently working on a MFC document-view application on VC++ 2010. It is used as a development framework, with a client specific dialog as needed (hiding the framework application).
We have started a gradual port to Qt, using QMfcApp. Our client specific dialog is a QMainWindow derivative.
Things are working good except for Ctrl keys accelerators. The problem is that all of the ctrl key bindings of the development framework get called even if they originate from the QMainWindow client dialog. Even Ctrl-C and Ctrl-V commands from text edits get to the MFC frame window.
Not sure where to start about that, any help appreciated
Hi, and welcome to the Qt Dev Net!
Which version of Qt are you using?
I don't have experience with QMfcApp myself, but I know this:
- QMfcApp is not part of Qt. Rather, it's part of "Qt Solutions" which isn't maintained anymore.
- Apparently, QMfcApp worked well with Qt 4.8.3, but users have had trouble with it in Qt 5: http://comments.gmane.org/gmane.comp.lib.qt.user/4198
If you don't get an answer on this forum within the next few days, try asking at the "Interest mailing list":http://lists.qt-project.org/mailman/listinfo/interest (you need to subscribe first)
Thanks, will have a look at the interest mailing list.
I am using Qt 4.7.4