Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Keyboard modifiers problem
NarimanN2 last edited by
hi! I was working with events in Qt and reached to QKeyEvent so far! I used modifiers() function like this :
if(event->modifiers() & Qt::ControlModifier == 0)
and Qt Creator displayed this error: C2666: 'QFlags<Enum>::operator &' : 3 overloads have similar conversions
what is Wrong?
Edit: please use @ tags around code sections; Andre
jmimi last edited by
Remove "== 0"