|
Cute Chess
0.1
|
A view widget for displaying a QGraphicsScene. More...
#include <boardview.h>
Public Member Functions | |
| BoardView (QGraphicsScene *scene, QWidget *parent=nullptr) | |
| virtual int | heightForWidth (int width) const |
| virtual QSize | sizeHint () const |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *event) |
| virtual void | resizeEvent (QResizeEvent *event) |
A view widget for displaying a QGraphicsScene.
BoardView is meant for visualizing the contents of a BoardScene. Unlike a pure QGraphicsView, BoardView doesn't use scrollbars and always keeps the view fitted to the entire scene.
|
explicit |
Creates a new BoardView object that displays scene.
1.8.11