Hi,
Is there a way to have QFileDialog show Save button instead of Open if it is customized?
I know I could use QFileDialog::getSaveFileName, but in this case I don't know how to add QUrls to sidebar, etc.
Thanks!
Qt Code:
QList<QUrl> sidebarURLs; sidebarURLs << QUrl::fromLocalFile(QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation)); sidebarURLs << QUrl::fromLocalFile(QDesktopServices::storageLocation(QDesktopServices::DesktopLocation)); fileOpenDialog.setWindowTitle(tr("Save chart file")); fileOpenDialog.setDirectory(lastPath); fileOpenDialog.setSidebarUrls(sidebarURLs); fileOpenDialog.setNameFilter(tr("Chart data (*.chart)"));To copy to clipboard, switch view to plain text mode
Bookmarks