Tag Info

Hot answers tagged

10

Make it Open Source! That way anyone can jump in and maintain, fix, whatever, when for whatever reason you just can't anymore, although this can happen due to basic operability (stares at air apps...) some apps just need an extra hit with a hammer to keep them working. Graditor: Packaged for 14.04 with little difficulty: PPA named gradiator-mateo for ...


6

In my experience (near 30 years now), hardware and low level code (BIOS for instance) change not that much or more accurately, keep a very good ascending compatibility. (I wrote twenty five years ago a little game program in assembler, running with DOS and VGA display: it's still running fine on modern Windows computers). So I would say: avoid dependencies ...


5

You can use QChart.js - QML bindings for Charts.js (a simple HTML5 Charts javascript library using the canvas element) I forked the project here to support resize events (for a desktop use). I basically need to reset the canvas context to allow resize events to properly redraw the surface with an updated window size (See ...


3

TREE is the current branch you are on. MERGE-SOURCE is the branch you merged from into the current branch. Let's say you're on trunk, and you merge from some other branch feature-123 and you get a conflict. If you look at the diff, you might see lines like these: <<<<<<< TREE changes you did in your current branch ======= changes ...


3

This property holds the name of the object. The objectName is a QString property of QObject which defaults to an empty QString. You usually set this property when you need to find QML elements from Qt. By this way the signals, properties and functions of a QML element can be accessed from Qt (C++) code. Autopilot tests use this property to introspect your ...


2

We have several, take your pick: Google+ Facebook Reddit (New) Ubuntu Forums Discourse AskUbuntu


2

1: It's used to lookup objects by name 2: All of them, it comes from QObject 3: It's used by autopilot to introspect your app from test cases 4: I'm not really sure 5: I don't think the id is discoverable from outside tools (like autopilot)


1

For your particular debian/rules:16: *** missing separator. Stop. error, make sure you have tab characters in your debian/rules file. Spaces to indent do not work.


1

I noticed that all icons used for shortcuts are png files not ico... I created a png for my icon and it magically worked. This fixed both the association with the launcher and the fact that the launcher did not work


1

You can use almost all the javascript syntax in QML (See http://qt-project.org/doc/qt-5/ecmascript.html). The fastest method is Math.round(<NUM> * 100) / 100 But (<NUM>).toFixed(2) works (but is too slow according to this question on SO) The following snippet of code presents both implementations: import QtQuick 2.0 import Ubuntu.Components ...


1

Why do you think it does not work? The following snippet of code works correctly for me: import QtQuick 2.0 import Ubuntu.Components 0.1 MainView { id: root width: units.gu(100) height: units.gu(100) Row { id: row spacing: 2 Rectangle { color: "red"; width: 50; height: 50 } Rectangle { color: "green"; ...


1

onClicked: { Qt.openUrlExternally("http://bbc.co.uk/"); }


1

To fix installing the SDK first install ubuntu-sdk-libs-dev sudo apt-get update sudo apt-get install ubuntu-sdk-libs-dev Then install the sdk: sudo apt-get install ubuntu-sdk


1

It is not possible with the current list items to change the font. The solution for now would be to use an Empty list item and to add a Label inside where you change the font. We are working on completely new list items which will be much faster to create, and which will be more flexible including the possibility to change fonts.


1

As far as I know, no such API exists to call libnotify from a QML component. To avoid creating a C++ plugin just to get notifications for a desktop application, I would use pyotherside to call a small python module to do the job: Prerequisite: Install pyotherside: sudo ap-get install pyotherside First the QML: import QtQuick 2.0 import ...


1

The Development and Programming section of Ubuntu Forums has a subforum named "Ubuntu Application Development". You could also consider the ubuntu-app-devel mailing list and the #ubuntu-app-devel IRC channel on Freenode (can't post IRC links, so: irc://irc.freenode.net/ubuntu-app-devel). Lastly, if it is development, you can always ask here, or on Stack ...



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