can able do sql connection in Design studio?
-
I was tried Sql/sql lite connection in design studio but not able to connect is it possible ?if possible can you share me a example for this thanks in advance
-
out of the box qml has no API to connect to a database - the onyl way is to use https://www.qt.io/product/qt6/qml-book/ch14-storage-local-storage which creates a sqlite which then can be used
-
Hi,
Depending on your need, you will need a bit of C++ to integrate such databases.
What is your exact goal ?
-
hi,
I need to store a data so i like to use database. but i little confused on qt creator and design studio , Without Creator we can get a executable file.so if i create a design in qt design studio .qml file, whether it all support on qt creator while import and run those
can you please give me example how to deals with this -
Perhaps try building a plugin for Qt Creator
-
out of the box qml has no API to connect to a database - the onyl way is to use https://www.qt.io/product/qt6/qml-book/ch14-storage-local-storage which creates a sqlite which then can be used
@Tim-Jenssen i tried this but .db file is not creating
-
Perhaps try building a plugin for Qt Creator
@hskoglund whether it support all design studio qml files
-
finally i came to a solution for this, design studio for design ui if you want to use data base on that use https://www.qt.io/product/qt6/qml-book/ch14-storage-local-storage it doesn't create a .db file but it store the data on it..if you want to use any other database need to import the qml in qt creator project and use back end file on that.
-