0

When I using QFont to change font size from qlabel and It'll worked.

But if I changed mainwindow It have same size.

How can I resizing font size when mainwindow changed.

c++/Qt creator

Thanks :)

enter image description here

enter image description here

cigien
  • 50,328
  • 7
  • 37
  • 78
FINN
  • 16
  • Not exactly what you're looking for but maybe helpful: [SO: How to automatically increase/decrease text size in label in Qt](https://stackoverflow.com/a/42690033/7478597) – Scheff's Cat Apr 26 '21 at 08:49
  • You can reimplement resizeEvent function for your QMainWindow class and set font in there, check this [link](https://stackoverflow.com/questions/12828825/how-to-assign-callback-when-the-user-resizes-a-qmainwindow) – Karen Melikyan Apr 26 '21 at 10:00

0 Answers0