Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt keypressevent detects key press as hexa not ascii
QtWS25 Last Chance

Qt keypressevent detects key press as hexa not ascii

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 538 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.
  • L Offline
    L Offline
    Lavanya
    wrote on last edited by Lavanya
    #1

    Hi everyone,
    here i wrote a small application on serialport using Qserialport class where i done all the appliocation but struct with one final step. our customer wants to send a hexadecimal data not asciicharachters but keypress event will detect keyboard keys as only ascii charachters.
    So i want to know is there any procedure so that on GUI if i choose hex data then after if i press keys from keyboard ot should sense keys as hexa data also non hexa charachter(say like g to z) should be given a as non hexa charachter you entered.
    Is there any way to achive this.
    Thnaks & Regards
    A.N.V.Lavanya

    jsulmJ 1 Reply Last reply
    0
    • L Lavanya

      Hi everyone,
      here i wrote a small application on serialport using Qserialport class where i done all the appliocation but struct with one final step. our customer wants to send a hexadecimal data not asciicharachters but keypress event will detect keyboard keys as only ascii charachters.
      So i want to know is there any procedure so that on GUI if i choose hex data then after if i press keys from keyboard ot should sense keys as hexa data also non hexa charachter(say like g to z) should be given a as non hexa charachter you entered.
      Is there any way to achive this.
      Thnaks & Regards
      A.N.V.Lavanya

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @Lavanya said in Qt keypressevent detects key press as hexa not ascii:

      So i want to know is there any procedure so that on GUI if i choose hex data then after if i press keys from keyboard ot should sense keys as hexa data also non hexa charachter(say like g to z) should be given a as non hexa charachter you entered.

      You should rephrase this as it is hard to understand what you mean.
      If you want to send numbers as hex strings (a key is nothing else as a number) then use https://doc.qt.io/qt-5/qstring.html#number

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • L Offline
        L Offline
        Lavanya
        wrote on last edited by
        #3

        sorry for making it difficult post.
        My doubt is very simple i want to design the application same as Pcomm terminal where we have sending hexadecimal data facility.
        Thanks & Regards
        A.N.V.Lavanya

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Lavanya
          wrote on last edited by
          #4

          Still Waiting for a reply.

          JonBJ 1 Reply Last reply
          0
          • L Lavanya

            Still Waiting for a reply.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Lavanya
            Nobody here knows what "same as Pcomm terminal" might be, nor how it behaves, nor what you want behaviour-wise from it.

            @jsulm stated what to call to convert a number to a hexadecimal string.

            1 Reply Last reply
            1
            • L Offline
              L Offline
              Lavanya
              wrote on last edited by
              #6
              This post is deleted!
              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