67 QTransform rotate(cosa, sina, -sina, cosa, 0, 0);
84int main(
int argc,
char **argv)
void paintEvent(QPaintEvent *) override
[2]
The QApplication class manages the GUI application's control flow and main settings.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=Qt::Alignment())
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment.
The QPaintEvent class contains event parameters for paint events.
The QPainter class performs low-level painting on widgets and other paint devices.
void drawRect(const QRectF &rect)
Draws the current rectangle with the current pen and brush.
void setPen(const QColor &color)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void rotate(qreal a)
Rotates the coordinate system clockwise.
void setFont(const QFont &f)
Sets the painter's font to the given font.
void drawText(const QPointF &p, const QString &s)
Draws the given text with the currently defined text direction, beginning at the given position.
void setTransform(const QTransform &transform, bool combine=false)
The QVBoxLayout class lines up widgets vertically.
constexpr float qDegreesToRadians(float degrees)
GLboolean GLboolean GLboolean GLboolean a
[7]
GLuint GLenum GLenum transform
GLenum GLenum GLenum GLenum GLenum scale
static bool translate(xcb_connection_t *connection, xcb_window_t child, xcb_window_t parent, int *x, int *y)
QApplication app(argc, argv)
[0]