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 between QListWidget and QGridLayout C++

Drag and Drop between QListWidget and QGridLayout C++

Scheduled Pinned Locked Moved General and Desktop
guidrag and dropqlistwidgetqgridlayoutc++
4 Posts 2 Posters 2.2k 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.
  • A Offline
    A Offline
    Apfel
    wrote on last edited by
    #1

    Hi there,
    I have a problem with drag and drop. I want to drop items from the GUI(QListWidget) in a QGridLayout.

    So far it works to drag the items from the QListWidget. But I can´t drop it in the QGridLayout because there is no drop option for this element.

    Does anybody know how a way that I can drop the items in the QGridLayout?

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

      Hi and welcome to devnet,

      You have to implement the drop part on the widget where the QGridLayout is applied

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        You have to implement the drop part on the widget where the QGridLayout is applied

        A Offline
        A Offline
        Apfel
        wrote on last edited by
        #3

        @SGaist
        Thank you for the answer, but how I can make it. I not really found something for that. Could you maybe help me a bit?

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

          It's described here

          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