How to Draw circle in tabwidget ?
Unsolved
General and Desktop
-
Hi,
Create a custom widget and do the drawing there.
-
Hi
A basic widget to draw with would be like
#include <QPainter> #include <QWidget> class CircleWidget : public QWidget { public: CircleWidget ( QWidget *parent = nullptr ) : QWidget(parent) {} protected: void paintEvent(QPaintEvent *event) override { QPainter painter(this); painter.fillRect(0, 0, size().width(), size().height(), Qt::red); } };