Tag Info

New answers tagged

1

ctx.save(); ctx.clearRect(0, 0, canvas.width, canvas.height); ctx.beginPath(); ctx.moveTo(75,90); ctx.lineTo(75,70); ctx.closePath(); ctx.stroke(); ctx.restore(); edit If someone is looking for an academic explanation, the problem is that you need two points to draw a line and apparently the library doesn't supply you with a starting point. You should set ...


0

Is this still a problem for you? Perhaps exposing the system level functionality through your app's UI might be the best way to go. I suspect locking at the app level would be considered a bug by the system developers so it's not offered.


0

I might be a bit late but yes you can use most normal QML.You should read the ubuntu api documentation for that.


2

libqt5sql5-mysql is not a part of the default image. If you wish to use it, you must either install it on the phone (which I assume would require making your image writable) or include it as part of your application. As an example, QHttpServer is not provided by the default image. I use it in Beru, so I build it as part of my application.


0

You can do this by putting your MainView in a QtQuick Window and setting visibility: Window.Fullscreen on that. I'm not sure that this is the recommended solution, but it does seem to work. import QtQuick 2.0 import QtQuick.Window 2.2 import Ubuntu.Components 1.1 Window { visibility: Window.FullScreen MainView { useDeprecatedToolbar: ...


-1

I have the same problem. I get the following errors: app.qml:64 Type FileDialog unavailable qrc:/QtQuick/Dialogs/DefaultFileDialog.qml:43 module "QtQuick.Controls.Private" is not installed qrc:/QtQuick/Dialogs/DefaultFileDialog.qml:42 module Did you find a solution?


0

If you try to create a QML App with C++ plugin and use the qmake option you will not be able to install the app on a device. The error: Framework "ubuntu-core-15.04" not present on system Therefore, in the SDK, choose QML App with C++ plugin (cmake). It will then run on your device.


2

You just need to learn the CMake language. It is the language of the CMakeListes.txt files that are all over the project. This language specifies how to build the project. And this language is independent from the QtCreator IDE that we are using. So, you can do builds without QtCreator and create CMakeListes.txt manually where you wish. Back to the ...


0

For me, the correct combination was QML App with C++ plugin (cmake) with the framework ubuntu-sdk-14.10-utopic.


1

If your application is designed to run under application confinement (usually required if you plan to ship through the click store), it will be restricted to access files only within its own silo. Files you wish to store permanently should be stored in .local/share/<appid>. <appid> is the unique string identifying your application, showing up ...


0

I've found a solution, just needed to add these lines to my .qml file WebView { ... context: WebContext { devtoolsEnabled: true devtoolsPort: 9232 } ... } From here: Enabling the devtools inspector when using Oxide in an Ubuntu SDK QML app


0

The Ubuntu SDK offers style components in Ubuntu.Components 1.2 version to allow app developers to customize components to their liking. PageHeadStyle is one such component that can be used to customize the page header throughout the app. Before using this style component, one needs to first define a custom application theme which would include these custom ...


1

In Ubuntu 14.04 and Ubuntu 14.10 QtSerialPort is provided by the libqt5serialport5-dev package from the Ubuntu Software Center.


0

I'm afraid you can't: your application is confined, and cannot access any files under the ~/Pictures directory. More info about this topic at https://developer.ubuntu.com/en/apps/platform/guides/app-confinement/



Top 50 recent answers are included