Questions tagged [ubuntu-sdk]

The Ubuntu SDK is your full-featured integrated development environment (based on QtCreator) for writing Ubuntu/Ubuntu Touch apps (QML or HTML5)

enter image description here

Useful links:

485 questions
53
votes
1 answer

Building Full Perl Support in Ubuntu SDK

I am running Ubuntu v14.04, and after some effort, I have successfully installed the Ubuntu SDK. I need to use Perl + QML/Qt to develop a (potentially large) number of fully-functional apps through the Ubuntu SDK, which can then run "convergently"…
32
votes
1 answer

What are Click packages?

I noticed that Ubuntu SDK recently had some updates and it installed a program named "Click". I would like to know what they are and how to use them. Also, would they make Debian packaging easier?
28
votes
1 answer

(QML) Flickable not working as supposed

So, while building an Ubuntu app I needed to use flickable for scrolling, so now I have code of the form Page{ ... Flickable { anchors.fill: parent content.height: element1.height + element2.height ... ... } } When I run it on my…
24
votes
2 answers

How to lock ubuntu device orientation in portrait or landscape from user input?

I am working on a reader app to be used on Ubuntu-Touch. When reading books from the app it would be a helpful feature to lock the orientation in either portrait or landscape. This would be useful when reading in bed sideways. I've tried to use…
23
votes
3 answers

Is it possible to use Python with the Ubuntu SDK?

David Planella wrote in his answer to a question I posted that: ...the recommended way to develop apps for Ubuntu is the Ubuntu SDK. So I installed it, but looks like the supported programming language is C++. Does it mean I will need to know C++…
Zignd
  • 10,982
21
votes
2 answers

How to set app icon in the .desktop file of an Ubuntu Touch application?

I am learning the Ubuntu SDK, and I have make an new HTML5 Touch UI project with Qt Creator. The project folder has an .desktop file. I then added an launcher.png to my project's folder. Here is my .desktop file: [Desktop…
17
votes
1 answer

How can I add custom dependencies to Click packages

My Ubuntu touch application requires a package called libqt5network5 to run. (This is installable via APT.) Once I build the Click Package from Ubuntu SDK and install, it does not check for the libqt5network5 dependency. I wish to know how to add…
Naveen
  • 9,551
17
votes
4 answers

How do you check if a property is undefined in qml?

How do you check if a property is undefined in qml? This is what I am trying to do: Button { id: myButton text: if (text === "undefined"){"default text"} }
Anon
  • 12,339
16
votes
1 answer

How to change index in OptionSelector immediately (without animation)?

In my app, I use an OptionSelector to choose from a list of bike stations. I also have a map component with placemarkers for each station. When I tap a placemarker, it also changes the OptionSelector to the index of the corresponding station, as…
10
votes
2 answers

How do I dynamically add tab to tabs?

I am trying to add a new tab to the tabs component with the code below. When running there is no error reported but no additional tabs are show. I have tried using both tabs and tabs.__tabsModel as the parent but no additional tabs are show. import…
9
votes
1 answer

How can I use emacs instead of Ubuntu SDK to write Ubuntu Touch Apps?

I want to use emacs and console tools instead of Ubuntu SDK to edit and debug my projects. Where can I learn about doing that?
lumenwrites
  • 759
  • 5
  • 13
9
votes
2 answers

Can a single Ubuntu SDK target touch and desktop with separate layouts?

I know that touch apps will run on the desktop with the same UI, but I was wondering if it will be possible for a single Ubuntu SDK app to have a multi-window UI with desktop style UI elements when running in desktop mode, while also providing a…
9
votes
5 answers

How can I update the Ubuntu SDK preview from the Qt 5 Beta PPA to the Qt 5 Release PPA

When the Ubuntu SDK preview was announced on the 2nd of January, it was based on the Qt 5 Beta release (as Qt 5 had not yet been released and packaged for Ubuntu). At some point, the Qt 5 release was packaged on a separate PPA and the Ubuntu SDK…
8
votes
1 answer

How to deploy an Ubuntu touch application for other GNU/Linux distributions?

My situation: I have created an Ubuntu touch application using Ubuntu SDK, in QML & C++. The application uses Ubuntu UI Toolkit (Ubuntu.Components 0.1) I want the application to run in other GNU/Linux distributions as well. How to deploy this…
Naveen
  • 9,551
8
votes
1 answer

How do you round numbers in qml to two decimal places?

I have these ridiculously long real numbers such as 33.088117576394794, and I am trying to convert them to doubles (Two decimal places). So in this case, I want 33.09. How do you do this in QML?
Anon
  • 12,339
1
2 3
32 33