Tag Info

New answers tagged

0

As suggested by @Maarten Klop, adding the vendor ID to adb_usb.ini seems to help: mat@ACA80164:~$ cat .android/adb_usb.ini # ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT. # USE 'android update adb' TO GENERATE. # 1 USB VENDOR ID PER LINE. 0x2a45 After doing that: mat@ACA80164:~$ adb devices List of devices attached 750ABLMPX44Y device ...


0

First ensure the USB Cable is working correctly and try to connect it directly without a USB HUB. Then on Ubuntu Touch go to Settings → About this phone. Then go all the way to the bottom Developer Mode, set a Lock security to your liking and then turn on Developer Mode


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 ...


0

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 ...


2

The directory where gettext will search for translations for a particular translation domain is controlled by the bindtextdomain function. The library most likely has a call to this function somewhere in its initialisation routines. So two options you could try are: Modify the library so the bindtextdomain call specifies a directory based on $APP_DIR. ...


0

In my manifest.json, I had to add a property called content-hub to hooks: "content-hub": "hub.json" And then create a hub.json file: { "source": [ "pictures" ] }


0

Make sure to include the "webview" policy group in your apparmor profile. At a minimum, the apparmor JSON file should be { "policy_groups": [ "networking", "webview" ], "policy_version": 1.2 }


1

I believe what you want is a Repeater, which repeats its delegate for each item in a model. As an example: Column { spacing: units.gu(1) Repeater { model: ["one", "two", "three"] Label { text: index + ". " + modelData } } }


0

When starting a new project, you need to select one of the "QML App with C++ plugin" templates: I personally prefer CMake over qmake, but either one will accomplish the same thing. When the new project wizard completes, you will end up with an application consisting of a QML interface and a QML plugin written in C++. It also serves as a functional ...


2

You parens aren't quite right: pageStack.push(Qt.resolvedUrl("qml/view.qml"), {code: codeValue});


0

Try making your property name a string, like this: {'code': codeValue}, otherwise Qml is likely trying to evaluate code as a variable rather than a literal.


1

Just to clarify Confinement Policy, if you want to write a file on Ubuntu Touch, in your file mytype.cpp, replace: QString filename = "text.txt"; by: QString filename = "/home/phablet/.local/share/your_app_name/text.txt";


2

One way would be to install a VM running ubuntu under the alternative version of linux. I use this every day at work, where I have ubuntu and centos VMs running on VMWare Workstation under windows (and I have both setup with Samba, so I can copy files between VMs). In my past job I had Windows and Centos VMs running under an Ubuntu desktop. I've had ...


0

You can look at the source code of the current implementation of the automatic screen brightness adjustment. I think that it is in the powerd daemon: https://code.launchpad.net/ubuntu/+source/powerd And it uses UASensorsLight class from the platform-api: https://code.launchpad.net/platform-api But the preferred way is the QML. Maybe I'll test it.



Top 50 recent answers are included