Skip to content

Instantly share code, notes, and snippets.

@stephenquan
Last active January 28, 2019 21:04
Show Gist options
  • Save stephenquan/616c942b9454b5ee8535e88e3f9d6bea to your computer and use it in GitHub Desktop.
Save stephenquan/616c942b9454b5ee8535e88e3f9d6bea to your computer and use it in GitHub Desktop.
appstudio-sql-troubleshooter.qml
import QtQuick 2.7
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.3
import ArcGIS.AppFramework 1.0
import ArcGIS.AppFramework.Sql 1.0
Item {
Flickable {
anchors.fill: parent
anchors.margins: 10 * AppFramework.displayScaleFactor
contentWidth: column.width
contentHeight: column.height
clip: true
Column {
id: column
spacing: 10 * AppFramework.displayScaleFactor
Text {
text: qsTr("Available SQL drivers (%1) :").arg(Sql.availableDrivers.length)
font.pointSize: 12
}
Repeater {
model: Sql.availableDrivers
delegate: Text {
text: " " + modelData
font.pointSize: 12
}
}
Text {
text: qsTr("Default SQL driver: %1").arg(db.driverName)
font.pointSize: 12
}
}
}
SqlDatabase {
id: db
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment