title: How can I check if a keyboard modifier is pressed (Shift, Ctrl, or Alt)?
body: <p>I am building a UI with <a href="https://en.wikipedia.org/wiki/Qt_Creator" rel="nofollow noreferrer">Qt Creator</a> and I want buttons to perform different actions with different modifiers. So I thought I could call functions with dynamic string properties that would perform the action depending on the modifier.</p>
  <p>Is there a simpler way to do this?</p>