Important: Please read the Qt Code of Conduct -

Text control does not inherit parent's font.

  • I have Text control and Button inside the same parent in QML. When I change parent's font.PixelSize, Button's font size is changed, but Test's font size is not. I use QT 5.10.1 and Quick Controls 2.0.

  • Text is a primitive type and part of Qt Quick core. It doesn't have font inheritance, like the Qt Quick Controls 2 types have. You can use Label from QQC2 instead.

Log in to reply