Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. India
  4. On QPushButton Stylesheet , long press event
QtWS25 Last Chance

On QPushButton Stylesheet , long press event

Scheduled Pinned Locked Moved Unsolved India
5 Posts 2 Posters 2.8k 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.
  • A Offline
    A Offline
    aravindan
    wrote on last edited by
    #1

    I created an Keyboard widget with all the keys are mapped to respective QPushButton. I am handling the clicked() event of the QPushbutton using SIGNAL and SLOT. I assigned the style-sheet for each keys in UI itself using QPushButton:Pressed{}

    The issue is, when you press(hold) and press one more Qpushbutton(Keys), after releasing the hold key remains in the pressed state, so the stylesheet assigned to keys remains unless you press some other keys.

    Please help me solve this issue. Also clarify that Qt supports multiple mouse click events.

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

      Hi,

      What version of Qt ?
      On what platform ?

      What do you mean by multiple mouse click events ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • A Offline
        A Offline
        aravindan
        wrote on last edited by
        #3

        The version is 5.6.2,
        on Linux platform,
        Like in keyboard hold the press of A at the same time press another key like B.

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          What version of Qt ?
          On what platform ?

          What do you mean by multiple mouse click events ?

          A Offline
          A Offline
          aravindan
          wrote on last edited by
          #4

          @SGaist Actually the Qt code will be running in Touch panel through AM335X processor ,where touch is equivalent to mouse click

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Keyboard and mouse (or touch screen) are not the same. So which one are you currently using and what is you exact goal ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1

            • Login

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