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

[Solved] Resize all the items within a container proportionally



  • Hi everyone.

    I'm building a series of gauges. The gauge faces include a background the actual needle and a text number, all placed in a rectangle. Within the application I need to make these smaller or larger proportionally to give some effects.

    How can I do this? Resizing the rectangle, which acts as the container, doesn't do this.

    Any help is appreciated. Thanks.



  • Did you try using the scale property on the containing rectangle?



  • Exactly what I've been looking for.

    Thanks.



  • Hi again.

    This worked very nicely, however when scaling down the quality is lost. Antialising and smoothing are also set to true. Could we scale down and retain the quality?


Log in to reply