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. Associate a button to a key
Forum Updated to NodeBB v4.3 + New Features

Associate a button to a key

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k Views 1 Watching
  • 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.
  • T Offline
    T Offline
    Twentyone
    wrote on last edited by
    #1

    Hi,
    i'm creating a calculator and i want to associate the key "+" to the corresponding button on my program and performing the plus operation.

    I searched in the doc and i understood that the solution is something about event, but i need a practical example.
    Thank you for the help :D

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerManu
      wrote on last edited by
      #2

      Read the "Event Filters" section of the documentation here:
      http://qt-project.org/doc/qt-4.8/eventsandfilters.html
      This explains everything for your case and has example code.

      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