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. QWindow - gestures
QtWS25 Last Chance

QWindow - gestures

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 4 Posters 1.9k 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
    terenty
    wrote on last edited by
    #1

    Hi everybody,
    Does anybody know if there is a way to get QGestureEvent's in QWindow without using QtQuick?
    It is a bit complicated to work with QTouchEvents directly...
    Thanks in advance!

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kwisatz
      wrote on last edited by
      #2

      You should be able to re-implement the "event":http://qt-project.org/doc/qt-5.0/qtgui/qwindow.html#event and recognize gestures accordingly. But before you can do that you should be "grabbing the gestures":http://harmattan-dev.nokia.com/docs/library/html/qt4/qwidget.html#grabGesture you want to detect.Now, I know I can do this with QWidget objects but not sure about QWIndows.

      Ideally I think QWindow should be only a container for QWidget objects from where you would detect the gestures.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        terenty
        wrote on last edited by
        #3

        Thank you for the reply,
        You re right we can grab gestures with QWidget, but unfortunately this functionality seems to be missing for QWindow (I guess thats becouse QtQuick has it's own gestures handling) , so without using QtQuick all we got is QTouchEvent wich is a bit low level.
        I was hoping that theres a way to use Qt's standart gesture recognizers to get gestures for QWindow...
        Im using QWindow to render OpenGL and I wouldnt want to move to QGlWidget

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mchiasson
          wrote on last edited by
          #4

          I'm in the same boat. I was hoping to receive QGestureEvent in a QWindow.

          1 Reply Last reply
          0
          • X Offline
            X Offline
            Xv1nX
            wrote on last edited by
            #5

            I have a program with Qmainwindow as root. In Qmainwindow I created a MainWidget inherited from Qwidget, which acts like my layout. This MainWidget contains a Qwindow, where I draw opengl directly. Now I want that my Qwindow get gestures event, if I run my program on a tablet.
            Would I get gestures event in my MainWidget and can manually tell my Qwindow?
            If not, can I create a transparent qwidget over my Qwindow and get gestures events?
            Thanks in advance

            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