Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to zoom in and zoom out in the parent rectangle while in simulator
Qt 6.11 is out! See what's new in the release blog

How to zoom in and zoom out in the parent rectangle while in simulator

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 2.6k Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I have created a parent rectangle with large dimensions and some images, I want to zoom in and zoom out and also navigate in the parent rectangle while it is zoomed.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      The details depends upon which approach you have used in your application i.e. QWidget vs QGraphicsView vs QML/QtQuick. In the end it will boil down to modifying the transformation to alter the scale. Can you provide some more information please?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        I want to use QML/QtQuick .

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          I want to use QML/Qtquick
          [quote author="ZapB" date="1335723814"]The details depends upon which approach you have used in your application i.e. QWidget vs QGraphicsView vs QML/QtQuick. In the end it will boil down to modifying the transformation to alter the scale. Can you provide some more information please?[/quote]

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            In that case all you need to do is to modify the "scale" property of your parent item. When you do so the parent and all of it's children will be scaled accordingly. The thing for you to do is to decide how you wish to trigger the scaling. Once you know this it will determine where and how you modify the scale property.

            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