Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. can able do sql connection in Design studio?
Forum Updated to NodeBB v4.3 + New Features

can able do sql connection in Design studio?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
8 Posts 4 Posters 462 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GOKUL_neevee
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tim.Jenssen
      wrote on last edited by
      #2

      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

      G 1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Depending on your need, you will need a bit of C++ to integrate such databases.

        What is your exact goal ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • G Offline
          G Offline
          GOKUL_neevee
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • hskoglundH Online
            hskoglundH Online
            hskoglund
            wrote on last edited by
            #5

            Perhaps try building a plugin for Qt Creator

            G 1 Reply Last reply
            0
            • T Tim.Jenssen

              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

              G Offline
              G Offline
              GOKUL_neevee
              wrote on last edited by
              #6

              @Tim-Jenssen i tried this but .db file is not creating

              1 Reply Last reply
              0
              • hskoglundH hskoglund

                Perhaps try building a plugin for Qt Creator

                G Offline
                G Offline
                GOKUL_neevee
                wrote on last edited by
                #7

                @hskoglund whether it support all design studio qml files

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  GOKUL_neevee
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  • G GOKUL_neevee has marked this topic as solved on

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved