Answer the question
In order to leave comments, you need to log in
A couple of questions about the Qt GUI?
How can I make it so that when I right-click on the Item-a line in the ListWidget, I can select an action i.e. do something like this:
And how do I set that when closing the window (pressing the cross in the window) I performed some function before it closes, for example, saving data to a file
Answer the question
In order to leave comments, you need to log in
I performed some function before it closes, for example, saving data to a file
For the first case - it's called "context menu" - google how it's done in Qt.
For the second case, as Alexander Taratin already answered , there are events.
How can I make it so that when I right-click on the Item-a line in the ListWidget, I can select an action i.e. do something like this:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question