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. Limit Drag And Drop Vertically
Forum Updated to NodeBB v4.3 + New Features

Limit Drag And Drop Vertically

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 933 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.
  • V Offline
    V Offline
    vezprog
    wrote on last edited by
    #1

    Hi,

    Currently, I have created multiple widgets stacked on top of one another. I am looking to allow a user to drag and drop the upper most widgets (I have read the drag and drop docs here: http://doc.qt.digia.com/qt/dnd.html and I think I can do it). I basically made my own QSlider (vertical), but instead of only having one item to slide up and down along the plane, there are 3.

    The one issue is, I would like to limit the dragging only only vertically (i want to make the horizontal x value static and unchangeable when dragging). Just like a QSlider works, and all 3 items will stay on the plane of the background slider line.

    Does anyone know how I can do this using the mouseevent override during the drag and drop operation?

    Thank you!

    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