Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Qt.io webservices
  4. How can I do drag and drop from QT app to TCL app.
Forum Updated to NodeBB v4.3 + New Features

How can I do drag and drop from QT app to TCL app.

Scheduled Pinned Locked Moved Qt.io webservices
8 Posts 2 Posters 2.6k 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.
  • G Offline
    G Offline
    GauravDhingra
    wrote on last edited by
    #1

    I have two different application one in QT and another one in Tcl . I have launched Tcl application through QT application. Now my application needs to do drag and drop from QT to TCL. I am able to do D&D in QT application but inter platform D&D is not working. Please help

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Disclaimer: I don't know tcl

      Based on the Drag and Drop chapter in Qt's documentation, I would say that you need to somehow enable MIME support for the DnD operations in your tcl application.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GauravDhingra
        wrote on last edited by
        #3

        Hi,
        I have enabled the MIME support in my TCL application, but when I am trying to drag some text from QT window and tried to drop into my tcl application neither the mouse cursor is changing it to dropable nor the drop is happening. I am using QT 4.6.2 release. I have found that a bug (QTBUG 27366) is filled which is fixed in 500_beta release.

        Please let me know will I get the expected behavior with qt 4.6.2 release.

        Thanks
        Gaurav

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          From what you are saying, you don't seem to start dragging anything from the Qt application.

          Have a look at the Drag & Drop chapter to learn how to do that.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • G Offline
            G Offline
            GauravDhingra
            wrote on last edited by
            #5

            Hi,
            The dragging from QT application is working fine. If I take the mouse cursor outside the QT application then the cursor changes to non droppable but it remains dropable when I hover on the QT application.

            Regards
            Gaurav

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              The change to non droppable is normal, until you get to something that might accept the dragged object

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • G Offline
                G Offline
                GauravDhingra
                wrote on last edited by
                #7

                Hi,
                What do I do to make the non droppable to droppable. {e.g non droppable is TCL GUI and droppable is QT GUI}.
                Let say if I want to drop draggable object from QT GUI to terminal then What do I do?

                Regards
                Gaurav

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Check that TCL and Qt uses the same technology for drag & drop

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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