Hi!
I'm a beginner with Qt and programming in general, and I'm having a problem with a shopping list type of program I'm trying to do. I have attached a picture to show a bit of what I'm trying to execute..
So I have a QTreeWidget, where I add the items, which are QWidgets. I add them with setCellWidget, when the "Add"-button is clicked. It creates a new widget into the QTreeWidget with the information set below it. I have gotten this to work fine, but I have no idea of the solutions, if there are any, to move the objects that have their checkboxes checked to the bottom of the QTreeWidget.
I assume that I should somehow keep a list of the added items, and their palce in the list. And when the checkbox of an item is clicked, the widget would send a signal that would move the wanted item down and handle the other items and their places accordingly. I don't really have any idea how this could be done, I don't know how new signals and slots are created, even though I have read the documentations and tried to check the examples.
Thank you very much in advance, maybe I could be of help for some newbie in the future, too!
Bookmarks