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. Brush Fill Not Scaling in QGraphicsView
Forum Updated to NodeBB v4.3 + New Features

Brush Fill Not Scaling in QGraphicsView

Scheduled Pinned Locked Moved General and Desktop
qgraphicsvqgraphicsi
1 Posts 1 Posters 552 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.
  • C Offline
    C Offline
    curtmantle
    wrote on last edited by
    #1

    I am using a QGraphicsView to render a scene that I can zoom in and out of using setMatrix.

    I have a QGraphicsItem derived class which draws a simple rectangle in the paint override and I wanted to try out the various fill styles that can be set on the Brush. If I set the Brush to have a diagonal fill style such as Qt::FDiagPattern, when I zoom in on the item the lines are rendered as dotted rectangles rather than a solid line. If I use a pen to simply draw a diagonal line on my item it works as I'd expect.

    Is this simply a limitation of the fill patterns on QBrush or can I get them to render diagonal fills with a straight line somehow?

    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