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. Qt Drag and Drop not working with CLR support
Qt 6.11 is out! See what's new in the release blog

Qt Drag and Drop not working with CLR support

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.0k 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.
  • D Offline
    D Offline
    durgeshK
    wrote on last edited by
    #1

    Recently i have selected the /CLR support for my project that is being developed using Qt Library in Visual C++ 2005. Earlier drag and drop feature in the project was working fine between 2 QListWidgets, but drag and drop feature is now not working anymore.

    I have checked that after removing /CLR support, drag and drop feature is re-enabled. How am i suppose to enable drag and drop feature of Qt along with /CLR support. Further, i have checked that drag and drop is not working for other Widgets(QGraphicsView) as well.

    Please Help!!!

    1 Reply Last reply
    0
    • I Offline
      I Offline
      ixSci
      wrote on last edited by
      #2

      I doubt there is an issue with Qt. Qt is for C++ not for managed C++ which is not C++.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        durgeshK
        wrote on last edited by
        #3

        i got the problem solved. i knew that there is nothing wrong with the Qt, but it was related to COM/CLR interop issue. The solution was to set the Thread Attribute to STA.

        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