Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Graphics tablet support, 2014?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Graphics tablet support, 2014?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.8k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    Kryzon
    wrote on last edited by
    #1

    Hello.
    I'm interested in developing an art creation program with the Qt framework and Python.
    I would like to know what is the current state of the QTabletEvent support on the desktop platforms.

    My main interest is that the program works on the 32 bit and 64 bit versions of Windows with support for the Wacom brand of graphics tablets, and I desire to later port the program to the other OSen.

    Is Qt5 currently supporting graphics tablet input on Windows (the Wintab territory)?

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

      Hi and welcome to devnet,

      AFAIK the support should be there. IIRC Krita's can make use of graphic tablets.

      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
      0
      • K Offline
        K Offline
        Kryzon
        wrote on last edited by
        #3

        Hello SGaist, thank you for the reply.
        I think Krita uses Qt 4.8, where graphics tablet support is confirmed.

        After some more research, on Windows at least Qt 5.x does not seem to support this feature. It's not removed, it's just not functional.

        • http://qt-project.org/forums/viewthread/27559/#124776

        • http://libregraphicsworld.org/comments/wacom-apocalypse-in-qt5-just-not-today/#comment-12244

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

          I can't tell, since they are part of KDE's stack they might be already using Qt 5 trough KDE's Framework (but I can't be too affirmative about that)

          The best would be to ask them directly, they might have more information to give you :)

          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
          0
          • K Offline
            K Offline
            Kryzon
            wrote on last edited by
            #5

            Hello.
            As a follow-up, I successfully got tablet events on a Qt widget on Windows XP SP3. I'm glad that it works.
            The tablet that I used is a Wacom Bamboo Capture Pen & Touch (CTH470).

            I arranged a workspace with Python 3.4.1 and PyQt5, which packages Qt 5.3.2, and ran the following snippet:

            @import sys
            import PyQt5
            from PyQt5.QtWidgets import (QApplication, QWidget)

            class MyWidget(QWidget):
            def tabletEvent(self, e):
            print(e.pressure())

            app = QApplication(sys.argv)
            widget = MyWidget()
            widget.show()
            sys.exit(app.exec_())@

            When run, this snippet creates a simple widget (a blank window), and if you press the stylus when the cursor is on the widget the console starts printing the pressures of each tablet event that the widget is receiving.

            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