Tag Info

New answers tagged

0

Don't use QtQuick Controls, or ship the QtQuick Controls you need as part of your application. Ubuntu provides its own set of QML widgets under the Ubuntu.Components namespace, instead of using those provided by QtQuick Controls. If you want your app to feel native on an Ubuntu device, you should use those widgets. If that's undesirable or impossible, you ...


1

You can't, at least under rules for distribution through the app store. As noted in the question you link to, the default application confinement on Ubuntu Touch restricts application to accessing files within their own silos. You can change the confinement settings for your app, but this may not be accepted in the app store. You could also give up on ...


0

Use the source: http://bazaar.launchpad.net/~music-app-dev/music-app/refactor/files apparmor.json there is: { "policy_version": 1.3, "policy_groups": [ "audio", "content_exchange", "music_files_read", "networking", "usermetrics" ], "read_path": [ "@{HOME}/.cache/media-art/", ...


1

Try import Qt.WebSockets 1.0. This is the module name given in the qmldir file. The QML Documentation says that the QtWebSockets name was introduced in Qt 5.5; prior to that, the namespace was Qt.WebSockets. Apparently, the old namespace is still active in 5.5, so I'd use it for the time being.


0

It sounds like you should be using Drag and Drop in addition to just MouseArea, as shown in https://developer.ubuntu.com/api/apps/qml/current/QtQuick.Drag/


1

Databases created from QML LocalStorage are saved in ~/.local/share/<appid>/Databases/, where <appid> is the applicationName in your MainView. The databases have hexadecimal names and the extension .sqlite. Each has an associated .ini file with the name and description from the first and third arguments to openDatabaseSync. If you only create one ...


1

If you already have your qml file on the phone, it's pretty easy. All you have to do is to call qmlscene with an extra argument. Start a connection from your desktop/laptop with phablet-shell. Run qmlscene with --desktop_file_hint, example: $ qmlscene --desktop_file_hint=/usr/share/applications/dialer-app.desktop $HOME/Documents/myfile.qml


1

Yes, it is possible. What you need to do is create a plugin. This will allow you to import a C++ object (and only objects!) into your QML namespace. Since you want a C++ function, you'll have to make a "dummy" object with a method that just calls the C++ function you desire. To do this, you'll need to create two classes. One will be a class for that ...



Top 50 recent answers are included