ubuntu-touch

ElectronJS for Linux touch mobile operating systems?

萝らか妹 提交于 2021-02-11 12:28:36
问题 ElectronJS is cross-platform framework to create desktop apps for Mac, Windows and Linux. But if I make an app using responsive web design for mobile views, will the distribution for Linux work for Ubuntu Touch, Sailfish OS, Mobian, and many other Linux mobile touch operating systems? 来源: https://stackoverflow.com/questions/65889861/electronjs-for-linux-touch-mobile-operating-systems

How to dynamically add components in QML?

蹲街弑〆低调 提交于 2019-12-14 00:16:19
问题 I am trying to create a component on the fly when a button is pressed, then add it to the current parent. I'm not sure what I am doing wrong here, I have this simple layout: import QtQuick 2.0 import Ubuntu.Components 0.1 import "components" import "componentCreation.js" as MyScript /*! \brief MainView with a Label and Button elements. */ MainView { // objectName for functional testing purposes (autopilot-qt5) objectName: "mainView" // Note! applicationName needs to match the "name" field of

How to create a circular progress bar in pure QML+JS?

久未见 提交于 2019-12-03 06:38:38
问题 My application is made using QML+JS and I am looking to create a circular progress bar widget. I can create the circle using a QML Rectangle and settings its radius equal to its width/2 to make it into a circle. How do I create a progress bar out of it? I am planning to implement the following mockup. 回答1: I've implemented a basic circular progress using a Canvas. import QtQml 2.2 import QtQuick 2.0 // draws two arcs (portion of a circle) // fills the circle with a lighter secondary color //

Conditionally include component based on property value

筅森魡賤 提交于 2019-12-02 06:32:43
问题 I have a ListView that displays some data from an API. Within my list item, I need to have two different component trees depending on the data for that row. More specifically, if the row has an associated image, I need to display the image with a label, arranged a certain way. If it does not have an image, then I want to display only a label, arranged a different way. To me, that sounds like I want to create two different components and choose which component to include, dynamically. It

Conditionally include component based on property value

佐手、 提交于 2019-12-02 01:57:33
I have a ListView that displays some data from an API. Within my list item, I need to have two different component trees depending on the data for that row. More specifically, if the row has an associated image, I need to display the image with a label, arranged a certain way. If it does not have an image, then I want to display only a label, arranged a different way. To me, that sounds like I want to create two different components and choose which component to include, dynamically. It currently looks something like this, in abbreviated form: ListItem.Empty { id: matchItem property string