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. How could I touch PushButton and Slider at the same time?
Forum Updated to NodeBB v4.3 + New Features

How could I touch PushButton and Slider at the same time?

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 322 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.
  • X Offline
    X Offline
    xyxxx
    wrote on last edited by
    #1

    while I am touching the PushButton ,the Slider is not able to be touched.Seem like that the user is moving a QSlider with one finger and pressing a QPushButton with another.
    I have set the WA_AcceptTouchEvents true ,but it does not work.
    What should I do to solve this.

    jsulmJ 1 Reply Last reply
    0
    • X xyxxx

      while I am touching the PushButton ,the Slider is not able to be touched.Seem like that the user is moving a QSlider with one finger and pressing a QPushButton with another.
      I have set the WA_AcceptTouchEvents true ,but it does not work.
      What should I do to solve this.

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

      @xyxxx What is the use case? Why should user press a button and a slider at the same time?

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

      X 1 Reply Last reply
      0
      • jsulmJ jsulm

        @xyxxx What is the use case? Why should user press a button and a slider at the same time?

        X Offline
        X Offline
        xyxxx
        wrote on last edited by
        #3

        @jsulm I want to make a wireless remote control on my Android phone which uses Slider and Button, and I may need to touch these controls at the same time in some situations such as clicking the Button to light up the LED while using the Slider to control the speed of my car .This way, there is more than one touch point on the screen.

        1 Reply Last reply
        0
        • O Offline
          O Offline
          osos11
          wrote on last edited by
          #4

          I had a similar situation. I needed to control 4 sliders at the same time. I created a slider in a qml file. I added that qml file to the interface with 4 separate QQuickWidgets and I had 4 simultaneously controllable sliders.
          Cpp Ui adapt touch event to mouse event. Due to mouse behaviour, you cant click or slide two object at the same time. :D

          You should take a look : https://github.com/aaronsnoswell/QMLVirtualJoystick/tree/master

          1 Reply Last reply
          0
          • X xyxxx marked this topic as a regular topic on

          • Login

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