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. How to use Drag'n drop?
QtWS25 Last Chance

How to use Drag'n drop?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.0k 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.
  • J Offline
    J Offline
    Jack_Bauer
    wrote on last edited by
    #1

    Hello,

    first i have to tell you, that i'm from germany so my english may contain some errors.

    After days of using search engines to find out how to use the drag and drop events, i hope you can help me.
    The problem is, that I want to enable to move a frame using the cursor.

    My idea was to use drag and drop, but I don't rlly understand this drag'n drop events.

    I don't want ready solutions, but I hope, there's someone who could explain me the concept of using drag'n drop for this purpose and in the best case with posting an example.

    Thanks in advance,

    Jack_Bauer, CTU

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Did you get a chance to look at Drag and Drop Examples given in the Qt Assistant ?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jack_Bauer
        wrote on last edited by
        #3

        [quote author="Dheerendra" date="1410195597"]Did you get a chance to look at Drag and Drop Examples given in the Qt Assistant ?[/quote]

        Yes, I did, but the examples are without a good explanation and the documentation in the web didn't help me.

        If I do this snippet into my mainwindow.h:

        @protected:
        void dragEnterEvent(QDragEnterEvent *event);
        void dropEvent(QDropEvent *event);@

        I will get three errors:
        !http://img5.fotos-hochladen.net/uploads/gg1t5uv02syl.png(bla)!

        It could be translated in english with "unresolved external symbol".

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          It means that you have not implemented these functions in your MainWindow.cpp. Implement these functions in your class.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          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