Hello,
I have made custom graphics widget with:
but it gets mouse events only on part of shape down and right of center of the item (bottom right quarter of a circle).
How can I make it work on all shape?
Printable View
Hello,
I have made custom graphics widget with:
but it gets mouse events only on part of shape down and right of center of the item (bottom right quarter of a circle).
How can I make it work on all shape?
Move your ellipse up and to the left by 50 each:
Hmmm.... why so?
This works perfectly fine:
Code:
#include <QtGui> public: p->drawEllipse(boundingRect()); } protected: qDebug() << Q_FUNC_INFO; } }; int main(int argc, char **argv) { QGraphicsScene sc; QGraphicsView view; view.setScene(&sc); sc.addItem(new Item); view.show(); return app.exec(); }