I am currently wondering how you can determine which filter the user selected with using QFileDialog::getSaveFileName().
I currently have it written as so, and have no idea how to implement it. I saw something about QFileDialog::selectedNameFilter() but would have no idea how to implement.
Qt Code:
bool VashTextEditor::saveAs() { tr("Vash Text Editor Files (*.vte);;Python (*.py);;C++ (*.cpp *.h *.cxx *.c)")); if (fileName.isEmpty()) return false; return saveFile(fileName); }To copy to clipboard, switch view to plain text mode
any help would be greatly appreciated and thanks in advance.
Bookmarks