Your code doesn't make sense. Why do you create a tool button in every repaint of the cell? If you want to draw a tool button, then use QStyle::drawComplexControl() with CC_ToolButton as its parameter.
What are you trying to do exactly?
Your code doesn't make sense. Why do you create a tool button in every repaint of the cell? If you want to draw a tool button, then use QStyle::drawComplexControl() with CC_ToolButton as its parameter.
What are you trying to do exactly?
Bookmarks