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 QSplitter

Drag and drop widgets in QSplitter

Scheduled Pinned Locked Moved Unsolved General and Desktop
qdockwidgetqmainwindowqsplitterqdrag drag drop
6 Posts 3 Posters 1.5k 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.
  • NIXINN Offline
    NIXINN Offline
    NIXIN
    wrote on last edited by
    #1

    I am creating an application where I want to drag and drop widgets in another widgets, like

    I am having QSplitters, leftSplitter, middleSplitter and rightSplitter.

    Each splitters are having QDockwidgets.

    When I undock the widgets form leftSplitter, I want to drag it and drop in rightSplitter.

    How can I achieve this?

    Any leads would be helpful.

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

      Hi,

      Do you have "container" widgets that you want to drop on ?

      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
      1
      • NIXINN Offline
        NIXINN Offline
        NIXIN
        wrote on last edited by
        #3

        yes
        I have QMainwindow

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

          I meant: does your QSplitter instance contain "empty widgets" that you drop on ?

          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
          • NIXINN Offline
            NIXINN Offline
            NIXIN
            wrote on last edited by
            #5

            yes, I have an empty mainwindow in splitter

            jsulmJ 1 Reply Last reply
            0
            • NIXINN NIXIN

              yes, I have an empty mainwindow in splitter

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @NIXIN You have a QMainWindow inside splitter?! I doubt that. You should have two widgets: for the left side of the splitter and for the right side of the splitter.

              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