Skip to content
  • 0 Votes
    1 Posts
    689 Views
    No one has replied
  • 0 Votes
    2 Posts
    2k Views
    ibiaI

    Hello, I am also developping an ORM for QML and I had the same problem. I do not know if this is the best solution but, I think that saving informations like the database name and version in a Settings {} component will permit to manage changes when they occur.

    Hope it helped.

  • 0 Votes
    1 Posts
    700 Views
    No one has replied
  • 0 Votes
    2 Posts
    1k Views
    A

    @amorawski Hi,

    if anybody would be interested in this - I didn't find any other way then by using native system browsers. Basically you need to extend the QQuickItem, then on iOS you can create the browser using ObjectiveC (using PlatformNativeInterface), on Android you need to use JNI (so you create native view on top of the QtView). Cool thing is that even animations work in both cases (on android you need to synchronize WebView position with the QQuickItem position beeing rendered on the QtView).

    For communication with javascript - for android you can use addJavascriptInterface, for iOS the best solution I have found is passing the params though URL on hidden iframe, and catching Load event on native side, fetching params from the URL).

    Cheers,
    art.