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. Record every button click of the user and store it in a function
Forum Update on Monday, May 27th 2025

Record every button click of the user and store it in a function

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 283 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.
  • M Offline
    M Offline
    Marco Flad
    wrote on last edited by
    #1

    I create a user interface with qt widgets that the user selects settings by pressing several buttons on multiple pages ,
    is there asimple way to Store this clicks in a one function as a single message contain all clicks
    to send later via Ethernet TCP/IP to Arduino ?

    Or there is a better way to take these settings and send them to Arduino via Ethernet ?
    thanks ,

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to the forums.
      Yes you can do that but storing clicks is more about storing what that clicks selected.
      So if you want to use buttons, you should set its setCheckable(true) so it acts like
      a checkbox and stay down if selected.
      That way you can loop over the buttons when user press ok and
      create that message containing all the selected "buttons" (their data) and
      use then QNetworkAccessManager to send it.

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Marco Flad
        wrote on last edited by
        #3

        hi, thank you
        its a good idea to use QNetworkAccessManager its looks very helpful Class i started working on it .
        thank you .

        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