Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Font Inheritance



  • I have created a QDialog derived class in QtCreator.

    In Designer, I added various widgets including QPushButton, QLabel and QLineEdit items.

    In my class constructor, I added:

    setFont(myFont);

    The selected font is correctly inherited by the QBushButtons. But it is NOT inherited by the QLabel or QLineEdit items. Why and how do I fix it?

    I did check myClass.ui and there are zero font references in that file.


Log in to reply