Cute Chess  0.1
Public Member Functions | Protected Member Functions | List of all members
BoardView Class Reference

A view widget for displaying a QGraphicsScene. More...

#include <boardview.h>

Inheritance diagram for BoardView:
QGraphicsView

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

BoardView::BoardView ( QGraphicsScene scene,
QWidget parent = nullptr 
)
explicit

Creates a new BoardView object that displays scene.


The documentation for this class was generated from the following files: