Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Keyboard modifiers problem
Forum Update on Monday, May 27th 2025

Keyboard modifiers problem

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 969 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NarimanN2
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jmimi
      wrote on last edited by
      #2

      Remove "== 0"

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved