Tag Info

New answers tagged

2

bzr lp-propose and bzr lp-propose-merge are the same command (lp-propose being an alias of lp-propose-merge): $ bzr lp-propose --help Purpose: Propose merging a branch on Launchpad. Usage: bzr lp-propose-merge [SUBMIT_BRANCH] Options: --staging Propose the merge on staging. -v, --verbose Display more information. -R ARG, ...


0

This piece of code solved the problem and prints the filename as I wished: def on_filechooserbutton_file_set(self, widget): self.videoInput = widget.get_filename() print "Video file Choosen: ", self.videoInput


0

What is the web server serving the apps? you can allways put shell scrips in the /cgi-bin/ folder and invoque the url.


1

I've the explanation. This is an actual bug described there https://bugs.launchpad.net/qtcreator-plugin-ubuntu/+bug/1365952. I workarouned it with indication in comment #3


3

You are clicking the button before self.instvar is set. The on_textbox_changed handler is probably never called. Startup Glade and select your text entry. In the property editor on the right select the signals tab and connect the GtkEditable changed signal to the correct handler. You should also put a print statement inside on_textbox_changed to see if it ...


2

Take a look at pyotherside, it's not really a GUI framework for python but a way to call python3 code from a QML application (you could even use the Ubuntu SDK). Pyotherside is available in the Ubuntu repositories as of 14.10. Regarding Gstreamer, from python I'd use gobject introspection, See Using GStreamer 1.0 from Python. From QML, if you just need ...


0

sudo apt-get install python-qt4 Clear, apt-get command do not need compiling, and your pyqt do not rely on Qt. But, if your python is build by yourself, you have to compile and install pyqt by your self. This issue may be helpful!


2

Since you talked about "core apps", I suppose you are referring to Ubuntu Touch Core Apps project. In that case (Ubuntu SDK/QML development) there are two tools that you could find useful for your purpose: PerformanceOverlay from Ubuntu.PerformanceMetrics module. According to documentation: PerformanceOverlay Overlay displaying performance ...


0

This API isn't available in 14.04, it was introduced in 14.10. To develop apps for 14.10 phones, you should create an emulator or use your device and create a "Kit" in QtCreator to handle building and running it there. You won't be able to run it directly on your 14.04 desktop. See http://developer.ubuntu.com/start/ubuntu-sdk/using-device-kits/ for a ...


2

The snippet of code in your question does not work for me. I wrote a minimal example: import QtQuick 2.0 import Ubuntu.Components 0.1 MainView { width: units.gu(48) height: units.gu(60) id: mainView Rectangle { height: visible ? 20; width: 20; } } And qmlscene reports the following error: qmlscene ./foo.qml ...


3

Ubuntu SDK promises to maintain backwards compatibility. As far as I can remember Ubuntu Components 1.1 was created with the introduction of new widgets like combo box, additional API changes, some performance tweaks etc. Core Apps are the first wave of consumers of the Ubuntu SDK followed by other 3rd party. I personally feel that we should be striving to ...


1

Applications should not rely on knowledge about the actual positioning provider but instead rely on the accuracy estimates provided with individual position updates (see http://developer.ubuntu.com/api/qml/sdk-14.10/QtLocation.Position/#horizontalAccuracy-prop). With that, application developers do not need to worry about specific characteristics of ...


0

I think what you need is the ListItem.Expandable SDK component. It was added in the 14.10 SDK Framework which is at the time of writing this answer is a development framework. It provides the capability to collapse and expand the listitem on clicking it. I would recommend you read the API documentation here to learn more about the component and see how to ...


1

I think it did not work for you due to GPS not being enabled on the device. The following code sample worked without segfaulting on my laptop. On the device, it takes about 1-2 mins to get the GPS lock since AGPS hasn't landed yet. import QtQuick 2.2 import Ubuntu.Components 1.1. import QtPositioning 5.2 MainView { id: mainView applicationName: ...


2

It is quite simple to do the above. To set automatic focus to the TextField component, you can call forceActiveFocus() from within your TextField component as shown below, Component.onCompleted: { forceActiveFocus() } This sets the focus to the textfield immediately after it is loaded. As for showing the numpad, you can do so by setting the input ...


0

There is nothing wrong with your glade file. Ubuntu uses Unity which displays the Menubar at the top of the desktop!


2

You can make a Flickable scroll to a specific point by setting the contentY property of a Flickable. Quoting the official documentation from qt-project.org, ContentY holds the surface coordinate currently at the top-left corner of the Flickable. For example, if you flick an image up 100 pixels, contentY will be 100. So if you want to scroll a ...


1

This is because you are running an out of date version of the Ubuntu SDK. The Ubuntu SDK is no longer updated on Ubuntu 14.04 (Trusty) even if you have added the SDK PPA. This is because the Ubuntu SDK requires Qt 5.3 which is only available in Ubuntu 14.10. You can solve this by, Using the Emulator for testing your applications. So you code on Trusty, ...



Top 50 recent answers are included