QTextEdit Ctrl + + zoomIn keyevent not working in Windows
Hi,
I developed an editor using QTextEdit. In this zoomIn option is working for Ctrl + ‘+’. But when I press Ctrl + Shift + ‘=’ keys zoomIn feature is not working.
In linux by default, Ctrl +Shift +’=’ is working. In windows it is not working.
Ctrl+Shift+= is same as Ctrl ++
I tried to capture the events in keypressEvent(QKeyEvent *e) method like this:
- {
- this->zoomIn();
- qDebug()<<"key ctrl shift + pressed";
- } // not working
- // second trial
- {
- this->zoomIn();
- qDebug()<<"key ctrl shift + pressed";
- } // not working
How can I make Ctrl+shift+’=’ make zoomIn in textEdit. How can I capture these keypresses combination.
Please suggest your views on this.
Appreciate your help in this regard.
Thanks,
Haney.
2 replies
You must log in to post a reply. Not a member yet? Register here!
