Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Creating a save to file function
saa-d last edited by
I'm new to Qt and I'm just learning the wheels and creating a project along the way.
I want to know how would I go about creating a save to file feature, where the user clicks a button and the platform's native file browser shows up and asks me to write a file name, with a predefined extension.
Basically I have a toolbar with a save button, and a PlainTextEdit widget, and I want to save the text I've written into the PlainTextEdit into a file, how would I go about implementing this in Qt Creator?
I'm working inside of the
void MainWindow::on_actionSave_triggered()event of the button.
Thanks in advance