KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
QGraphicsItem::paint has the following signature: void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) When I create custom QGraphicsItem s, I have to provide an implementation for this function. The thing is... I never need to use the option and widget parameters, but I can't just remove them for obvious reasons. I always see these compiler warnings: warning: unused parameter ‘widget’ warning: unused parameter ‘option’ Is there a proper to get rid of these warnings? I know I can hide them by mentioning the unused parameters in the function, but this is a very dirty solution and I'd like to know if there are better options.
Tags (comma-separated)
Save Edits
Cancel