Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]Question about QGrapchicsscene and QGraphicsview
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Question about QGrapchicsscene and QGraphicsview

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 650 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.
  • X Offline
    X Offline
    xmaze
    wrote on last edited by
    #1

    hi to evereybody,

    i have a scene with a background image, about 1200800 pixels and a grapchicsview that is smaller, about 700500 pixel. How can i change the view to the center of the image; Now it's the upper corner.
    Of course will be better if i can follow an item that it is moving all the time.

    i tried centerOn(item); is it right?

    Thanx

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

      This should work, Have you tried and it did not?

      1 Reply Last reply
      0
      • X Offline
        X Offline
        xmaze
        wrote on last edited by
        #3

        it 's working!

        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