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. Drawing with Apple Pencil?
Forum Updated to NodeBB v4.3 + New Features

Drawing with Apple Pencil?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 1 Posters 1.6k 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.
  • P Offline
    P Offline
    patrickkidd
    wrote on last edited by
    #1

    Hello! Has anyone implemented a really nice drawing feature for the Apple Pencil? There is a big difference between applications that simply copy a brush pattern and others that take advantage of the speed and tilt of the pencil in a very fine-tuned way which makes the drawing extremely realistic.

    Has anyone done this with Qt?
    Thanks!

    https://alaskafamilysystems.com/

    1 Reply Last reply
    0
    • P Offline
      P Offline
      patrickkidd
      wrote on last edited by
      #4

      It appears that there is a bug in the detection of pressure in the touch device code for iPad Pro. When I hard-code it in to the Qt source (quiview.mm:289) everything works fine. I filed a bug report here:

      QTBUG-59042 Apple Pencil not properly supported on iOS

      Also, as stated in the Qt docs you have to accept the QEvent::TouchBegin event or you won't get the subsequent QEvent::TouchUpdate events.

      https://alaskafamilysystems.com/

      1 Reply Last reply
      1
      • P Offline
        P Offline
        patrickkidd
        wrote on last edited by
        #2

        @patrickkidd said in Drawing with Apple Pencil?:

        Hello! Has anyone implemented ...

        It looks like QTouchEvent has a QTouchDevice which returns pressure, velocity, etc. I have no idea if these values are supported yet with Apple Pencil. There doesn't appear to be support for altitude angle (tilt) or event prediction which is what makes the pencil appear so fast.

        Anyone have any more information on these features? Some other way to access them?

        https://alaskafamilysystems.com/

        1 Reply Last reply
        0
        • P Offline
          P Offline
          patrickkidd
          wrote on last edited by
          #3

          Or has anyone even received apple pencil events at all, let alone drawing? Do we still need to get the raw apple events and somehow translate them to qt events?

          https://alaskafamilysystems.com/

          1 Reply Last reply
          0
          • P Offline
            P Offline
            patrickkidd
            wrote on last edited by
            #4

            It appears that there is a bug in the detection of pressure in the touch device code for iPad Pro. When I hard-code it in to the Qt source (quiview.mm:289) everything works fine. I filed a bug report here:

            QTBUG-59042 Apple Pencil not properly supported on iOS

            Also, as stated in the Qt docs you have to accept the QEvent::TouchBegin event or you won't get the subsequent QEvent::TouchUpdate events.

            https://alaskafamilysystems.com/

            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