I have a widget (QlineEdits) thats is used to update a string member of my struct, the trigger is the editingFinished() signal from the QLineEdit.

from the snippet below

Qt Code:
  1. myclass::updateString(void) // connected to the editingFinished()
  2. {
  3. myStruct.name /* which is a QString*/ = myLineEdit->text();
  4. }
  5.  
  6. myclass::saveToFile(void)
  7. {
  8. finalStruct = myStruct;
  9.  
  10. save(finalStruct); // found that my finalStruct has the old data of myStruct
  11. }
To copy to clipboard, switch view to plain text mode 

I run in debugging mode and found that updateString was performed after saveToFile, that is when i type in line edit then pressed save . My hunch is that the updateString connection was qued or delayed somehow, Now my question is how can i make a connection givine a the highest priority?

baray98