Keyboard modifiers problem

  • 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

  • Remove "== 0"

Log in to reply

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