Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Browsing all 4972 articles
Browse latest View live

Problem with disable action areas (TextField, ...)

You can make binding from visible to enabled. When visible is set to false, the component (e.g. TextArea) will lose focus, will become untouchable and that is your solution.

View Article


Large virtual canvas

Solved this problem with requestDraw() at event when canvas window go outside of the drawn tile(s).

View Article


Multimedia keys

Hi, I’m working on a music player. I now have a Windows 8 tablet with BlueToots. I have it connected to BT headset and I would like to make it’s playback control work. I tried Clementine player, in...

View Article

Problem with states when pressed

When you release mouse this state states: State {             when: icon.pressed            ...

View Article

Embedding a QWindow inside a QML scene?

I’m not actually trying to embed a QML scene within another QML scene, I am more interested how it could be done than actually doing it. What I really want to be able to do is embed any QWindow in a...

View Article


Got errors when deployed QtQuick2 app

I want to make standalone app for Ubuntu Linux. So I’ve built app using qmake + make tools. In main.qml there’re some imports import QtQuick 2.0 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.1...

View Article

[solved] How to modify Gradient in a state's PropertyChange?

I found the solution: Simply give each GradientStop an id, and use these ids as the target of the PropertyChange.

View Article

Most basic imports

What are the most basic imports we can do to minimize the size of an app in Qt Quick ? Assuming we will not be using multimedia, network, and other stuff ? Tks

View Article


Using a Loader for a string of QML

A few things that might help: It wasn’t obvious to me that you can create a custom qml object just using qml in a text file. Create a qml file to define your object in the same directory as the code...

View Article


Got errors when deployed QtQuick2 app

What plugin I’m missing? E.g. I have ./platforms/libqxcb.so plugin library correctly loaded into the app. Other plugins ./platformthemes/libqgtk2.so ./generic/* ./platforminputcontexts/* also loaded...

View Article

[solved] Strange behaviour when animating opacity

The following code to animate opacity works:     id: root;     opacity: 1.0;     states:     [      ...

View Article

[solved] Strange behaviour when animating opacity

Oops, I think I already figured it out… I forgot to mention properites: “opacity” in the NumberAnimation. Apparently, ColorAnimation assumes the targeted property is “color”, while NumberAnimation...

View Article

Refreshing remote Image source without flickering (resp. empty image during...

I have a simple Image that uses a remote source (http://url.to/image.png). The problem is, if I change the image source to another url, the Image will be empty while it is fetching the image from the...

View Article


QML: Receive signals from C++ object in different thread

HI Everyone I hope I’m phrasing this correct. I want to send a signal from a C++ object running in a different thread than main.cpp, to a QML window. Currently I use the main.qml, which receives the...

View Article

QML array alternative syntax

edit: not useful anymore

View Article


Refreshing remote Image source without flickering (resp. empty image during...

My current way too complicated solution: import QtQuick 2.2   Rectangle {     id: container     property int imageVisible: 1     property...

View Article

How to substitute a QAbstractItemModel with a QList role with a QML ListModel?

I have a model derived from QAbstractItemModel. One of the roles (“values”) returns a QList<double> which should be interpreted according to the role “type”. Here is the reduced header...

View Article


How to crop an image inside an item (rectangle)?

Hi, I would like to load and display a picture (.png) inside a circle (rectangle) that I have defined. I have done some tries with Image.PreserveAspectCrop but they were not conclusive. I want my image...

View Article

TabViewStyle: make tabs take all horizontal space

Hi I’m trying to understand how to make tabs in a TabView take all the available horizontal space. Setting their width is easy:   style: TabViewStyle {    id: tabStyle...

View Article

RCC Parse Error for adding qm file using QTranslate

I am trying to add localisation in my app and I have created all the resource files using mainly from this link “help”: http://blog.qt.digia.com/blog/2014/03/19/qt-weekly-2-localizing-qt-quick-apps/....

View Article
Browsing all 4972 articles
Browse latest View live