mScan in dialog,h and file.h is not the same object.
mScan in dialog,h and file.h is not the same object.
Ok, how can I access the variable for File else? I wanted to avoid using a global variable.
Last edited by vitalic; 15th May 2020 at 17:03.
Keep mScan in one class (your File class, for example). Add a setScans() method to your Dialog class to copy this data into the Dialog class instance before your call to exec(). Or keep it in your Dialog class and pass it as an argument to File:: dab_write_file().
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks