Skip to content
  • why setPen didn't work?

    Unsolved General and Desktop setpen blue black addpolygon
    2
    0 Votes
    2 Posts
    668 Views
    mrjjM
    Hi What are u calling setPen on? Paths do not store color and such information so Im not sure its possible to do with only 1 polygon. Maybe create a subclass of QGraphicsItem and paint it directly with qpainter::drawLine which supports colors very easy. http://www.bogotobogo.com/Qt/Qt5_QGraphicsView_QGraphicsScene_QGraphicsItems.php