Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QString GuiEngine::GetCSVFileName(void)
- {
- QString prompt = "Open File";
- return QFileDialog::getOpenFileName(NULL,
- prompt,
- "report.csv",
- tr("CSV files (*.csv)"),
- NULL,
- QFileDialog::DontUseNativeDialog);
- }
- import QtQuick 2.1
- import QtQuick.Dialogs 1.0
- FileDialog {
- id: fileDialog
- title: "Please choose a file"
- onAccepted: {
- console.log("You chose: " + fileDialog.fileUrls)
- Qt.quit()
- }
- onRejected: {
- console.log("Canceled")
- Qt.quit()
- }
- Component.onCompleted: visible = true
- }
- ...module "QtQuick.Controls" is not installed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement