61 , textColor(textColor)
84 int main(
int argc,
char *argv[])
91 a->setPreferredSize(100, 100);
93 b->setPreferredSize(100, 100);
95 c->setPreferredSize(100, 100);
133 w->setMinimumSize(100, 100);
134 w->setPreferredSize(320, 240);
143 view.resize(360, 320);
The QApplication class manages the GUI application's control flow and main settings.
The QColor class provides colors based on RGB, HSV or CMYK values.
static QString translate(const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
The QFont class specifies a query for a font used for drawing text.
The QGraphicsAnchorLayout class provides a layout where one can anchor widgets together in Graphics V...
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
QGraphicsObject * parent
the parent of the item
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
void addItem(QGraphicsItem *item)
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
The QPainter class performs low-level painting on widgets and other paint devices.
void setPen(const QColor &color)
void setFont(const QFont &f)
void drawText(const QPointF &p, const QString &s)
void fillRect(const QRectF &, const QBrush &)
The QString class provides a Unicode character string.
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.
int main(int argc, char **argv)
GLboolean GLboolean GLboolean b
GLfloat GLfloat GLfloat w
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
QApplication app(argc, argv)
[0]