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] Panning, scrolling and zooming in quick2
Forum Updated to NodeBB v4.3 + New Features

[Solved] Panning, scrolling and zooming in quick2

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 2 Posters 2.3k 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.
  • G Offline
    G Offline
    gbonnema
    wrote on last edited by
    #1

    Our team is working on a graphical designer and specifically needs to be able to scrol, pan and zoom its designs. As I understand from the GUI programmer, quick2 is actually pretty attractive, powerful and fast. But, apparantly he cannot find how to do the functions scrolling, panning and zooming in quick2. It seems as though quick1 with graphicsview is the only alternative.

    Are the functions scrolling, panning and zooming possible in quick2? If so, is there any example in code?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3685
      wrote on last edited by
      #2

      Qml2 support pretty much everything Qml1 has. What specifically is he missing that exists in Qml1?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gbonnema
        wrote on last edited by
        #3

        scrolling, panning and zooming. He could not find that in quick2.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          t3685
          wrote on last edited by
          #4

          Where did he find it in Qml1?

          1 Reply Last reply
          0
          • G Offline
            G Offline
            gbonnema
            wrote on last edited by
            #5

            We found it in the example application chip, which is an admirable example by the way, try zooming out fully. It shows both opengl and non-opengl work: scrolling, panning and zooming.

            It is this functionality that we could not find in qml2 / quick2.

            [edit] you can find this as one of the example applications of qtcreator.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              t3685
              wrote on last edited by
              #6

              Hi,

              The application chip you are talking about does not make use of Qt Quick1. It uses QWidgets which is not the same thing. It seems there is some confusion on your parts what the different technologies are or I am looking at the wrong example :)

              If you want panning/scrolling in Qml look at the Flickable element, if you want to add zooming, look at the scale property of Qml elements.

              If can also add custom visual elements using QQuickPaintedItem (and there other alternatives).

              Good luck!

              1 Reply Last reply
              0
              • G Offline
                G Offline
                gbonnema
                wrote on last edited by
                #7

                Thank you very much. I will relay this to our programmer. Hopefully we can start using QtQuick2.

                We solved the item using your comment as a base. Thanks.

                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