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. QPainterPath and texture offset
Qt 6.11 is out! See what's new in the release blog

QPainterPath and texture offset

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 670 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.
  • S Offline
    S Offline
    Sergey I.
    wrote on last edited by
    #1

    Hi

    I'm trying to fill my qpainterpath with a texture but for two identical paths located on a widget one under another the filling looks different.
    Looks like the filling starting coordinates are selected not by a square area of a path but with some different way so as result it looks unaligned.

    Is there any way to make it always aligned or set filling start coordinates manually?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sergey I.
      wrote on last edited by
      #2

      I solved this by drawing on a QImage first and then copying the QImage to the widget.

      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