Tag Info

Hot answers tagged

5

This is a great question, and you're right that this topic isn't discussed often. We have been using Juju for development in our day-to-day activities for over a year so I wrote a blog post about it hoping to illustrate the power of using Juju for development. http://fromanegg.com/post/121456490632/using-juju-for-development Also keep in mind that a Juju ...


3

Strictly, the directory: / is the "root" directory of all directories. That includes all sub- directories, so includes your home directory as well. You need additional privileges for all directories outside ~ (your homedirectory), so either you need to: be member of a specific group (e.g. to share files or directories), or, more drastically, you need sudo ...


2

Sounds like you were accidentally in the phone section, clicks are currently for Ubuntu Touch. Click on "Desktop" as shown here: That should get you in the right section, also remember that you won't get e-mail's for notes on the submission, so check the status and feedback areas often.


2

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


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


2

Make the following changes to your script: Below line def ResComboB_changed(ResComboB): add the following to it, so it looks like this: def ResComboB_changed(ResComboB): global resolution or add resolution = "" above the def line like this: resolution = "" def ResComboB_changed(ResComboB): Hope that helps ;)


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

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


1

You cannot create it, but you can copy from a working system as below to some shared location between the machines and copy from the shared location to the other system. Machine A cp -rf /dev/SRC shared_directory Machine B cp -rf shared_directory /dev/


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";


1

I ran into this old question and have some new information to add to the answer. As of 1.23 Juju supports the Google Compute Engine (GCE) provider! You can read about how to set up Juju with your GCE credentials on the jujucharms.com documentation site. I have been using the GCE since 1.23 was released and can confirm it does indeed work.


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



Only top voted, non community-wiki answers of a minimum length are eligible