Qt Ctrl++ (Control Plus Plus) Shortcut Not Working in Qt 5.5



  • I've noticed in Qt 5.5.0 and in Qt Creator 3.4.2 (built on Qt 5.5.0), that Actions attempting to use Ctrl++ are not working. Note that the shortcut works correctly in older versions (for example, Qt Creator 2.7.0 built on Qt 5.0.2).

    For example, if I try to increase the font size in QtCreator using Ctrl++, nothing happens. The same is true for the ImageViewer example. (Ctrl++ in the ImageViewer increases the image size, but in 5.5.0, it does not work.)

    If I bind increasing the font size to another shortcut in QtCreator (via Tools->Options->Environment->Keyboard), such as Ctrl+Z, it works fine.

    I did a little debug by overriding keyPressEvent, and it appears that Ctrl++ is being sucked up earlier in the dispatch, but I am having trouble figuring out exactly where.

    My questions are:

    1. Is this a bug?
    2. If not, does anyone have any advice on how to see how the key is being dispatched?

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Does your CTRL++ involve the shift modifier ?

    If so, IIRC, there's a bug that's been fixed for Qt 5.5.1



  • Yes, you are correct. There is more information here for anyone else interested:

    https://bugreports.qt.io/browse/QTBUG-47701



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.