Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Extend LocalStorage
Qt 6.11 is out! See what's new in the release blog

Extend LocalStorage

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 894 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.
  • D Offline
    D Offline
    dafreeze01
    wrote on last edited by
    #1

    Hi,

    i created a SQLite DB and use serveral Tables via QueryModels in QML.
    Problem is, that i want to use the same DB in QML per LocalStorage.
    Does anyone know, if it is possible.
    My Idea was to extend the LocalStorage connection between C++ and QML, but i can't find, how to extend the Class. Another Idea is to duplicate the plugin.cpp where the LocalStorage Class can be found, but i think it should be a main Idea.
    Or does anyone see a reason, why i can use the same DB in every Sqlquery without specifying it every time, what is a great feature, but i can't use this DB in the QML LocalStorage.

    Thanks for reply.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dafreeze01
      wrote on last edited by
      #2

      Does nobody has an Idea?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dafreeze01
        wrote on last edited by
        #3

        Don't know, if it has to be done like i did, but i extended the localstorage, by making a new plugin (because i didn't know how to subclass it) and changed some things. Would be great, if a maindevolper could review it and maybe put it in the next release.

        http://pastebin.com/16UrmHgV

        1 Reply Last reply
        0

        • Login

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