Questions related to the QtDeclarative module that provides a declarative framework for building highly dynamic, custom user interfaces.
Questions tagged [qtdeclarative]
35 questions
1
vote
2 answers
Cross-compiling QtDeclarative for raspberry pi
I'm trying to cross compile qml for Raspberry pi 3 on a x64 Ubuntu.
I followed this tutorial
https://wiki.qt.io/RaspberryPi2EGLFS, installed Qt 5.6.3 and managed to run QtWidgets applications pretty easily and I'm now looking to use QML.
From what…

DeadlyJesus
- 1,503
- 2
- 12
- 26
1
vote
2 answers
Resizing a QGraphicsItem to take up all space in a QGraphicsView, problems when window is resized
I have a QGraphicsItem (actually, a QDeclarativeItem) and I want it to take up the entire visible space of the QGraphicsView (again, its actually the derived QDeclarativeView class) to which it was added. Normally, you can use…
user21037
1
vote
1 answer
Python 2.7 crashes when importing PyQt4.QtDeclarative or PyQt4.Qt on Ubuntu
Some time ago (months?) the program rqt_plot started crashing on startup (SIGSEGV) on my machine. I finally tracked it down a little deeper and found that the problem occurs while python is trying to import PyQt4.QtDeclarative. Unfortunately I…

aldo
- 2,927
- 21
- 36
1
vote
1 answer
How do I build Qt5.6 with xmlpatterns module enabled?
I've found out that XmlListModel QML element resides in qtdeclarative git submodule and that to include it in the build I need somehow to enable xmlpatterns module of Qt (according to qtdeclarative/src/imports/imports.pro file). The question is how…

krokoziabla
- 695
- 1
- 6
- 21
1
vote
2 answers
Qt4.7 QML TextInput empty state detection
I have the following TextInput element:
TextInput {
id: textInput
text: m_init
anchors.centerIn: parent
font.family : "Helvetica"
font.pixelSize: 14
color: "black"
maximumLength: 2
smooth: true
inputMask: "HH"
…

Dmitry
- 1,912
- 2
- 18
- 29
1
vote
2 answers
Can't launch Qt Quick Controls application
I downloaded Qt 5.4 and created Qt Quick application with Qt Quick Controls 1.3.
I didn't change anything in code, just built it (as release). Then I copied .exe to another folder, added all the .dll files I needed and when I launched my program…

Dmitriy Baranov
- 163
- 11
1
vote
1 answer
Qt | Is this possible to use declarative and quick modules simultaneously
I have Qt5 project that successfully compiled against shared Qt libraries, but I get a lot of errors (about 130 errors) like * error: multiple definition of 'XXX' when compile it against static Qt…

CAMOBAP
- 5,523
- 8
- 58
- 93
1
vote
1 answer
Is libQtDeclarative required for QML?
I'm not sure if libQtDeclarative.a is required for QML. Is it? If not, what is it for exactly?

trusktr
- 44,284
- 53
- 191
- 263
0
votes
0 answers
Qt Declarative cross compiling for STM32 giving error on Qt Base 6.3.0
Hey!
I have successfully cross-compiled Qt6 (6.3.0) base module for the STM32. I then tried adding QtShader module via qt-configure-module and it worked! However, when I am trying to add Qt Declarative the same way (using qt-configure-module), I am…

Athem
- 1
0
votes
1 answer
Qt/QML - How to apply the same background to all DelegateChioces in DelegateChooser?
Hi I have a DelegateChooser for a TableView with 10-20 different DelegateChoices. How can I apply the same background to all the choices? I want to avoid having to add the same background to all choices as that is a lot of repeater code and a…

pooya13
- 2,060
- 2
- 23
- 29
0
votes
0 answers
Build qtdeclarative fail on Ubuntu 14.04
I try to build qtdeclarative from source code but an compilation error occured
fatal error: QtCore/private/qglobal_p.h: No such file or directory.
Below is some information about my situation
OS: Ubuntu 14.04
Build Steps
Install qt5 library
$…

TuanPM
- 685
- 8
- 29
0
votes
1 answer
Strategy for porting QDeclarative-based code to Qt 5.6.0
I'm trying to add a currently standalone Qt QML application ("new application") as a display widget in a QMdiArea in a large non-QML Qt application ("main application"). The main application I'm trying to add this to uses Qt 5.6.0, and the new…

Kristin
- 142
- 1
- 9
0
votes
2 answers
How to validate Qml property value before assigning?
Element.qml
Item{
property int step
property int minValue
property int maxValue
property int value //should accept values of form i*step+minValue
}
main.qml
Element{
step:2
minValue:-7
maxValue:7
value:0 //not an…

Wee
- 131
- 4
0
votes
1 answer
ListView - zoomed out and transparent elements
I have a scrollable and flickable ListView with 5+ elements and I'd like to have the elements which are shown at both ends zoomed out, transparent and slightly moved so the whole list becomes rounded up, sort of getting the shape of a wheel.
I think…

daten
- 131
- 1
- 1
- 12
0
votes
0 answers
Animation in Qml
I'm trying to make a slow change of color in my code but my program waits for 1.5 secs and then changes color instantly. My development environment is Windows 8. How can i fix this? Here is my code:
Rectangle {
color: "green"
width: 300
…

Dmitriy Baranov
- 163
- 11