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. QTouch3DInputHandler example?
Forum Updated to NodeBB v4.3 + New Features

QTouch3DInputHandler example?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
androidqtouch3dinputhadatavisualizatiwidgets
3 Posts 2 Posters 747 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.
  • T Offline
    T Offline
    Tom asso
    wrote on 26 Aug 2019, 17:39 last edited by Tom asso
    #1

    How do I modify a datavisualization widget app C++ code to use QTouch3DInputHandler instead of Q3DInputHandler ? I'm adapting the Qt "surface" data visualization C++ widget example to run on Android, not just on the desktop.

    T 1 Reply Last reply 26 Aug 2019, 18:15
    0
    • T Tom asso
      26 Aug 2019, 17:39

      How do I modify a datavisualization widget app C++ code to use QTouch3DInputHandler instead of Q3DInputHandler ? I'm adapting the Qt "surface" data visualization C++ widget example to run on Android, not just on the desktop.

      T Offline
      T Offline
      Tom asso
      wrote on 26 Aug 2019, 18:15 last edited by Tom asso
      #2

      Per other examples I configure the "surface" app's Q3DSurface as follows:

      SurfaceGraph::SurfaceGraph(Q3DSurface *surface)
          : m_graph(surface)
      {
          m_graph->setActiveInputHandler(new QTouch3DInputHandler(m_graph));
      
      

      (where m_graph points to Q3DSurface)
      When run on my Android device the surface graph is displayed, but the app doesn't respond to my touch input, i.e. I cannot rotate, zoom, or select. In fact if I build the same app for the desktop, the app responds to mouse/wheel commands as usual - somehow it seems the QTouch3DInputHandler is not activated?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maitai_vw
        wrote on 1 Jun 2022, 19:23 last edited by
        #3

        Same problem exactly here, did you find any solution ?

        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