First of all you can't just create a new style object, use the one that's already there. Second of all you need to setup the option object you pass to drawControl. What it expects is surely different from what paint() receives from QGraphicsView.
First of all you can't just create a new style object, use the one that's already there. Second of all you need to setup the option object you pass to drawControl. What it expects is surely different from what paint() receives from QGraphicsView.
Bookmarks