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. addText on QPainterPath issue
Forum Updated to NodeBB v4.3 + New Features

addText on QPainterPath issue

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.0k 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.
  • L Offline
    L Offline
    literA2
    wrote on last edited by literA2
    #1

    Hi,

    I tried drawing a text using QPainterPath then paint it using QPainter, however this is the result:

    The text isn't completely painted, it has missing pixels on it.

    sample image

    What could be the problem here? Am i doing the correct way of painting the text or did i miss a property?
    Btw, the reason why I tried drawing the text using QPainterPath because using the drawText of QPainter the text seems to be blurry or pixelated, which happened only in iOS not in Android. Whereas in drawing the text in QPainterPath, it is showing as it should be.

    And also, if you noticed on the polygons (created using rounded rect then polygon using points) behind the texts, they're painted using QPainter, however they're not sharp and there is a missing pixel on the top left and bottom left corner, which is part of the rounded rect, this only happened in iOS not in android. Did i miss some property or something? Thanks!

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

      Is this the picture you have posted ?
      sample image

      You have forgotten the exclamation mark at the start. Since I was not sure of this, I did not adjust it directly in your post.

      Vote the answer(s) that helped you to solve your issue(s)

      L 1 Reply Last reply
      0
      • K koahnig

        Is this the picture you have posted ?
        sample image

        You have forgotten the exclamation mark at the start. Since I was not sure of this, I did not adjust it directly in your post.

        L Offline
        L Offline
        literA2
        wrote on last edited by
        #3

        @koahnig yes, it is. Thanks.

        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