Hi Everyone,
I am new in QT so can you please tell me how can I add two Canvas in my QFrame?
Thanks.
Hi Everyone,
I am new in QT so can you please tell me how can I add two Canvas in my QFrame?
Thanks.
what exactly you mean by Canvas? You can draw on every QWidget. To position two widget in a frame use layouts.
I want to add two canvas where I can draw depending on the event I will receive from the user.
Ok, then you have two main options: Subclass a QWidget and paint in its paint event to draw via QPainter. Or use a (more complex and powerfull) QGraphicsView framework.
For arranging them in a frame use as told QLayout/QHBoxLayout...
chandan (11th March 2010)
Thanks a lot.
Bookmarks