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. Moving QGraphicsView when moving the mouse
Forum Updated to NodeBB v4.3 + New Features

Moving QGraphicsView when moving the mouse

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 140 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.
  • I Offline
    I Offline
    Infestor
    wrote on last edited by Infestor
    #1

    Im new to Qt and was wondering how i would achieve this. What im talking about is the basic behaviour of most cameras in most games, that is to say once the mouse is near enough at the border of the screen it moves.
    The main problem i am having with this is most likely that i do not know how to set the scene rectangle as the focussed item as the scene only uses a QRect and not a QGraphicsItem (that can be made focusable). Obviously it wouldnt make much sense anyway as the scene is not an item, but there has to be a solution for this right?

    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