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. Best way to paint handwriting from digital pencil?
Forum Updated to NodeBB v4.3 + New Features

Best way to paint handwriting from digital pencil?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 545 Views 2 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!

    I am going to implement handwriting for digital pencils that support pressure. What would be the best way to paint this? Basically it will just be a line for each stroke that varies in thickness from pixel to pixel based on the pressure of the pencil.

    Can this be done well with QPainterPath or some other method, or should I just be painting pixel for pixel myself?

    Thanks!

    https://alaskafamilysystems.com/

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      You can look at scribble example in qt installation examples directory. Not sure about the pressure. For this you may need to use multitouch or touch point. Simple mouse event dos not support pressures

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

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

        I forgot to mention that some sort of vectorized smoothing would be really nice if I am just using QPainterPath::lineTo()

        @dheerendra said in Best way to paint handwriting from digital pencil?:

        You can look at scribble example in qt installation examples directory.

        Thanks, I'll have a look at that.

        https://alaskafamilysystems.com/

        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