weird thing is if i go to file explorer and delete the text file, (left.txt) and press the button to save. It works. It save the current value
but if i just save or even use QFile to remove and Resize the text file to 0 it wont work.
And if I save and the text file exist ( means i didn't delete the text file), the data/text in text file will be changed, not to current value but to DEFAULT value
#so it seems is bcause i run mainwindow function from another class that caused this
Qt Code:
MainWindow main1; main1.Save1(); // What to do??To copy to clipboard, switch view to plain text mode
Bookmarks