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 move/drag widgets between multiple Dockwidgets?
QtWS25 Last Chance

How to move/drag widgets between multiple Dockwidgets?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 495 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.
  • S Offline
    S Offline
    Sriu1
    wrote on last edited by
    #1

    I have created a container from this link https://wiki.qt.io/Widget-moveable-and-resizeable
    Below is the code where I'm setting this container object to Dockwidget.

    QDockWidget *dock = new QDockWidget(tr("D1"), this);
    QLabel *GUI_qlabel1 = new QLabel ("Zone 1");
    TContainer *container1 = new TContainer (this, QPoint (10, 10), GUI_qlabel1);
    container1->setGeometry(100,100,75,75);
    dock->setWidget(container1);

    I want to create multiple QDockwidgets which should support below requirements
    1.The container should be restricted within a dockwidget window.
    2.The container should be able to move from one dockwidget window to another(only for a special case).

    Please suggest If QDockwidget is the right class for this requirement or should I use any other class.

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

      Duplicates this thread.

      Closing this one.

      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