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. To Drag and Drop setDropAction(Qt::moveAction) in dragMoveEvent and dragEnterEvent is not necessary.

To Drag and Drop setDropAction(Qt::moveAction) in dragMoveEvent and dragEnterEvent is not necessary.

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

    I've tested a project for Drag and Drop but when i dont write
    @setDropAction(Qt::moveAction)@
    in
    @dragMoveEvent(...)@
    and
    @dragEnterEvent(...)@

    project still work, i saw many projects with this line and i dont know why a professional programmer write this code?(you can see many examples that wrote this line in their 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