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. Drag and Drop widgets in a display zone
Forum Updated to NodeBB v4.3 + New Features

Drag and Drop widgets in a display zone

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.4k 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.
  • F Offline
    F Offline
    fouffa89
    wrote on last edited by
    #1

    I know that widgets in QT accept drag and drop but I don't know how to customize this for my needs.

    I have a display zone where I can drop multiple widgets(QProgress bar, QLabel ..) from a list of draggable widgets "something like Qt designer :) but much easier" . I imagine that the solution must be difficult , specially for beginners like me :) but I need help to try it.
    Any idea?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tchoninho
      wrote on last edited by
      #2

      Hi,

      See drag and drop in Qt examples

      Computer Scientist
      Belo Horizonte - Brasil
      C++ Development
      Qt Development

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vittalonline
        wrote on last edited by
        #3

        by using following events

        #void dragEnterEvent(QDragEnterEvent *event); 
        

        void dragLeaveEvent(QDragLeaveEvent *event);

        void dragMoveEvent(QDragMoveEvent *event);

        void dropEvent(QDropEvent *event);

        1 Reply Last reply
        0
        • F Offline
          F Offline
          fouffa89
          wrote on last edited by
          #4

          thanks a lot !

          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