Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] Resize all the items within a container proportionally

[Solved] Resize all the items within a container proportionally

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 845 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    matinzk
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        matinzk
        wrote on last edited by
        #3

        Exactly what I've been looking for.

        Thanks.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          matinzk
          wrote on last edited by
          #4

          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?

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved