Post by Enrico ForestieriPost by Jean-Marc LasgouttesPost by Scott KostyshakIt seems that switching to Qt 5 is still a bit away, but planning
early is always a good idea. I would like to start (if it exists
already, please let me know) either a wiki page or a trac issue
keeping track of issues that we think have to do with Qt 4 vs. Qt 5.
Hopefully for each issue related to LyX with Qt 5 we can list the
versions of Qt 5 and OS's for which we have confirmation the issue
exists.
It would be nice to not just list the bugs that switching to Qt 5
would bring, but also the fixes or elimination of workarounds that the
switch would bring.
The best is to open a tracking bug, and then a ticket for each
individual problem.
1) Q_WS_XXX macros are not defined. This would be easily solved
by replacing them with appropriate Q_OS_XXX macros.
2) QWindowsMime class not available. This only affects Windows and
results in not having vector graphics when pasting images. The
code is protected by Q_WS_WIN32 and does not get compiled in,
so the build succeeds anyway.
3) Shortcuts are always doubled when entered through the GUI. This
affects all platforms and I was not able to find the reason. The
only workaround I found is the attached hack which simply drops
any other keystroke.
I tried the attached patch, but it seams, shortcuts are not the only ones doubling key events.
Each tab creates this output (output by 'lyx -dbg key'), even with the patch.
(Noticed by Scott)
frontends/qt4/GuiWorkArea.cpp (1075): count: 1 text: isAutoRepeat: 0 key: 16777217 keyState:
frontends/qt4/GuiKeySymbol.cpp (623): Getting key 16777217, with text ' '
frontends/qt4/GuiKeySymbol.cpp (629): Setting key to 16777217,
frontends/qt4/GuiKeySymbol.cpp (644): isOK is 1
frontends/qt4/GuiApplication.cpp (2019): KeySym is Tab
frontends/qt4/GuiKeySymbol.cpp (644): isOK is 1
frontends/qt4/GuiKeySymbol.cpp (652): isModifier is 0
frontends/qt4/GuiApplication.cpp (2042): action first set to [command-alternatives]
frontends/qt4/GuiApplication.cpp (2050): action now set to [command-alternatives]
frontends/qt4/GuiApplication.cpp (2061): Key [action=command-alternatives][Tab]
frontends/qt4/GuiWorkArea.cpp (1075): count: 1 text: isAutoRepeat: 0 key: 16777217 keyState:
frontends/qt4/GuiKeySymbol.cpp (623): Getting key 16777217, with text ' '
frontends/qt4/GuiKeySymbol.cpp (629): Setting key to 16777217,
frontends/qt4/GuiKeySymbol.cpp (644): isOK is 1
frontends/qt4/GuiApplication.cpp (2019): KeySym is Tab
frontends/qt4/GuiKeySymbol.cpp (644): isOK is 1
frontends/qt4/GuiKeySymbol.cpp (652): isModifier is 0
frontends/qt4/GuiApplication.cpp (2042): action first set to [command-alternatives]
frontends/qt4/GuiApplication.cpp (2050): action now set to [command-alternatives]
frontends/qt4/GuiApplication.cpp (2061): Key [action=command-alternatives][Tab]
Kornel