Items in ScrollArea move to another Scroll area when clicked
-

How can I make items from scroll area(on the left) move to scroll area2(on the right), when these items are clicked?
I don't even know where to begin, and what type these Items should be?(PushButtons or just Labels?) -
Hi,
As @dan1973 wrote, using the model view framework provided by Qt is the way to go. However there's no need to go down to the custom mouse events. Proper configuration of the already implemented drag and drop feature should cover your use case.
-
You can use QListWidget for both scroll areas. And then use MouseClickEvent to capture the click event and remove the Object (QWidget) from source to destination QListWidget.
Try working on QListWidget examples to get an idea.
@dan1973 Thanks a lot, Dan!!!
-
Hi,
As @dan1973 wrote, using the model view framework provided by Qt is the way to go. However there's no need to go down to the custom mouse events. Proper configuration of the already implemented drag and drop feature should cover your use case.
@SGaist Thank you man, I'm so happy that there are still people, who are willing to help each other.. Appreciate it!