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. ZOOMIN AND ZOOMOUT IN QT
Forum Updated to NodeBB v4.3 + New Features

ZOOMIN AND ZOOMOUT IN QT

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 1.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.
  • P Offline
    P Offline
    prabhatjha
    wrote on last edited by
    #1

    Hey, i made a graph in custom widget.....but it is not properly visible so i want to add zoomin and zoomout on this .But I ahve no idea how to add zoomin and zoomout in paintevent .please help me to come out from this proble...thanks in advance....

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      In QML, zoom functionality is usually achieved by using "scale" property of Item.

      (Z(:^

      1 Reply Last reply
      0
      • P Offline
        P Offline
        prabhatjha
        wrote on last edited by
        #3

        Hey i made it in qt creator and i know about scale but i want to do something else.....like i will choose some particular area of my graph and it should be zoomed..like in touch mobile........

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Use the scale, do the maths, and it will show you only what you need :) There is no built-in mechanism for getting that, AFAIK.

          (Z(:^

          1 Reply Last reply
          0
          • p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by
            #5

            bq. ...like i will choose some particular area of my graph and it should be zoomed

            Have a look at "Qt5 Everywhere Demo":https://qt.gitorious.org/qt-labs/qt5-everywhere-demo/source/9a868f96ee63c21ceda890d8dfc9d33f093d1b6d. May be you will get some idea.

            157

            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