Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Drag and drop widgets in QSplitter

    General and Desktop
    qdockwidget qmainwindow qsplitter qdrag drag drop
    3
    6
    914
    Loading More Posts
    • 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.
    • NIXIN
      NIXIN last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 1
        • NIXIN
          NIXIN last edited by

          yes
          I have QMainwindow

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by SGaist

            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 Reply Quote 0
            • NIXIN
              NIXIN last edited by

              yes, I have an empty mainwindow in splitter

              jsulm 1 Reply Last reply Reply Quote 0
              • jsulm
                jsulm Lifetime Qt Champion @NIXIN last edited by

                @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 Reply Quote 0
                • First post
                  Last post