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
Forum Updated to NodeBB v4.3 + New Features

Drag and drop widgets in QSplitter

Scheduled Pinned Locked Moved Unsolved General and Desktop
qdockwidgetqmainwindowqsplitterqdrag drag drop
6 Posts 3 Posters 1.5k Views 2 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.
  • N Offline
    N Offline
    NIXIN
    wrote on 19 Sept 2018, 07:05 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 19 Sept 2018, 21:25 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
      • N Offline
        N Offline
        NIXIN
        wrote on 20 Sept 2018, 06:44 last edited by
        #3

        yes
        I have QMainwindow

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 20 Sept 2018, 22:08 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
          • N Offline
            N Offline
            NIXIN
            wrote on 21 Sept 2018, 04:30 last edited by
            #5

            yes, I have an empty mainwindow in splitter

            J 1 Reply Last reply 21 Sept 2018, 04:33
            0
            • N NIXIN
              21 Sept 2018, 04:30

              yes, I have an empty mainwindow in splitter

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 21 Sept 2018, 04:33 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

              5/6

              21 Sept 2018, 04:30

              • Login

              • Login or register to search.
              5 out of 6
              • First post
                5/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved