Skip to content

Instantly share code, notes, and snippets.

@stephenquan
Created July 18, 2017 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephenquan/2b3abeb387e36d9a745118e643dd0c62 to your computer and use it in GitHub Desktop.
Save stephenquan/2b3abeb387e36d9a745118e643dd0c62 to your computer and use it in GitHub Desktop.
import QtQuick 2.7
import ArcGIS.AppFramework 1.0
import ArcGIS.AppFramework.Sql 1.0
Item {
width: 640
height: 480
FileFolder {
id: fileFolder
path: "~/ArcGIS/Data/Sql"
}
SqlDatabase {
id: db
databaseName: fileFolder.filePath("sample.sqlite")
}
Component.onCompleted: {
fileFolder.makeFolder();
db.open();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment