Resize the box instead of the font

This commit is contained in:
Spiros
2024-06-02 15:18:05 +03:00
parent 34af93e085
commit f29ea468dc
2 changed files with 53 additions and 22 deletions

View File

@@ -12,6 +12,12 @@ public:
protected:
void paintEvent(QPaintEvent *event) override;
void resizeEvent(QResizeEvent *event) override;
void setText1(const QString &newText1);
void setText2(const QString &newText2);
void setText3(const QString &newText3);
void adjustWidthToFitText();
private:
QString text1;