I don't think actual code will be of any value here so I will try quasi pseudo code in attempts to clarify the situation.
I have a QLineEdit that transfers its text to a structure that is used to store the text in a file.
It is transfered to the structure when the editingFinished() signal is emitted.
Now in the QMainWindow I have a QAction (QToolBar and QMenu) so when I click on the "Save" QToolButton it does not cause the QLineEdit to lose focus (or finished the edit) so it saves the structure with the previous data. It never gets updated since editingFinished() never gets emitted.
I am not sure how to go about making sure the QLineEdits most recent text is applied to the structure. In the QAction of the "save" button? In the QLineEdit (do not see what other signal could be valid)? Or some other QEvent processing that could force the editingFinished() signal.
Bob
EDIT: Ultimately clicking a QToolButton or a QMenu does not cause a QLineEdits editingFinished() signal to be emitted and thats the root of my problem.
Bookmarks