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. how to implement when SHift key is pressed and try to move the mouse with mouseButton1 in QGraphicsView (same as micropowerpoint)
QtWS25 Last Chance

how to implement when SHift key is pressed and try to move the mouse with mouseButton1 in QGraphicsView (same as micropowerpoint)

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 550 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    Hi All
    There is functionality in power point when we have a shape as square

    now if the user

    1. Keep Shift key pressed
      2)move the mouse with button1 pressed . The square moves either on Y axis and X axis

    Can some one guide me how to implement the same

    FlotisableF 1 Reply Last reply
    0
    • Q Qt Enthusiast

      Hi All
      There is functionality in power point when we have a shape as square

      now if the user

      1. Keep Shift key pressed
        2)move the mouse with button1 pressed . The square moves either on Y axis and X axis

      Can some one guide me how to implement the same

      FlotisableF Offline
      FlotisableF Offline
      Flotisable
      wrote on last edited by
      #2

      @Qt-Enthusiast
      I think you can reimplement the drag and drop event to meet your need, take a look at Graphics View Framework Drag and Drop

      1 Reply Last reply
      2
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        Could you please elabaorate more with code

        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