Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    General and Desktop
    1
    1
    853
    Loading More Posts
    • 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
      whitesong last edited by

      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 Reply Quote 0
      • First post
        Last post