Questions related to the QtDeclarative module that provides a declarative framework for building highly dynamic, custom user interfaces.
Questions tagged [qtdeclarative]
35 questions
16
votes
1 answer
Invalid write to global property QML
I have this signal
class SystemUICfgScanner
{
/*code here*/
signals:
void error(QString desc);
/*more code*/
};
In QML I use an InfoBanner this way:
InfoBanner
{
property string infodetails: ""
id: systemuicfgErrorBanner
…

marmistrz
- 5,974
- 10
- 42
- 94
6
votes
1 answer
OpenGL rendering to a QML item
I have a QML file which contains a layout of QML items and now I want one of those items to be a QGLWidget. i.e. I want to render to a specific QML item.
Is anyone aware of how to do this?

Chenna V
- 10,185
- 11
- 77
- 104
5
votes
1 answer
PySide: passing data from QML to Python
I'm trying to send data from QML to Python, but I'm getting an error.
test.py:
#!/usr/bin/env python
import sys
from PySide import QtCore, QtGui, QtDeclarative
class Test( QtCore.QObject ):
def __init__( self ):
…

liewl
- 4,021
- 13
- 46
- 65
5
votes
1 answer
QML - Images don't load in deployed version of application
I wrote a Qt/QML application and every thing is OK during compile time and running on my own system. But when I move this software to an another computer none of pictures loads.
for example here is my background picture:
Image{
…

s4eed
- 7,173
- 9
- 67
- 104
4
votes
1 answer
Q_PROPERTY not shown
I'm using Q_PROPERTY with QML. My code is:
using namespace std;
typedef QString lyricsDownloaderString; // this may be either std::string or QString
class lyricsDownloader : public QObject
{
Q_OBJECT
public:
Q_PROPERTY(QString lyrics READ…

marmistrz
- 5,974
- 10
- 42
- 94
3
votes
0 answers
Qml with static build
I've seen a lot of topics about this problem but none can actually solve my problem. When I create a new Qt Quick application with QtQuick 2.4 I have the error:
Project ERROR: Unknown module(s) in QT: quick qml
If I import QtQuick 1.1 I have:…

Dmitriy Baranov
- 163
- 11
2
votes
2 answers
Porting qt5.5 to qt5.9, qtdeclarative module removing
I have project that written in qt5.5 and below and it contains qtdeclarative module, I am trying to port qt5.5+ but my project using qtdeclarative module that is removed. So I added equivalent as this document says but members are removed or moved…

ikaloron
- 59
- 8
2
votes
2 answers
PyQt - QtDeclarative import troubles
I am running Ubuntu 10.10, and I installed PyQt 4.7.4 through apt-get.
I build a GUI layout with QtDesigner and compile the .ui file to .py using pyuic4.
Then I subclass the auto-generated class and implement the subclass's constructor. I call…

Dave Masselink
- 73
- 1
- 7
2
votes
1 answer
Displaying QML file with custom QT code (implementing resize/move functionality)
What is the best way of displaying a QML file with custom QT C++ code ? I tried creating a QWidget without a window border like
main.cpp
#include "stdafx.h"
#include "myqmlapp.h"
#include
int main(int argc, char *argv[])
{
…

fgungor
- 479
- 4
- 15
2
votes
1 answer
QML "QtQuick.PrivateWidgets" plugin "widgetsplugin" not found
I have developed my Qt application by using shared Qt libraries.
After transition to static Qt libraries CONFIG += static, My app crashes and I see in log
QQmlApplicationEngine failed to load component
qrc:/main.qml:907 Type MessageDialog…

CAMOBAP
- 5,523
- 8
- 58
- 93
2
votes
1 answer
QML application deployment, Resources system or relative addressing
I'm going to deploy a QML based application. Now I'm wondering it's better to use resources system for .qml files and their associated files or using relative addressing or there is a better way?
The first way maybe make the project difficult to…

s4eed
- 7,173
- 9
- 67
- 104
1
vote
1 answer
Qt/QML - How to customize Popup dimming effect?
Hi is there a way to customize the dimming effect of the Popup when modal === true? I want the surrounding area of the Popup to be dimmed more.

pooya13
- 2,060
- 2
- 23
- 29
1
vote
1 answer
Is it legal to assign to property that already has binding defined in QML
Let's say property 'x' has an immidiate value in QML,
and another property 'y' is bound to 'x'
Text { id: mytext; x: 100; y: x; text: x+","+y; }
Is it legal to assign another value to any of the properties?
i.e. is binding 'y: x' simply…

Jack White
- 896
- 5
- 7
1
vote
1 answer
How can I build libQt5Declarative.so?
When building qtdeclarative, I get the following artifacts:
drwxr-xr-x 6 4.0K Mar 8 21:17 cmake/
-rw-r--r-- 1 2.1M Mar 8 21:19 libQt5QmlDevTools.a
-rw-r--r-- 1 706 Mar 8 21:19 libQt5QmlDevTools.la
-rw-r--r-- 1 1.1K Mar 8 21:19…

obadz
- 889
- 4
- 10
1
vote
0 answers
Qt 5.11: UI element refreshed only when clicked
I have a project developed in an old version of Qt for Mac, maybe version 4. I have opened the project in the current version 5.11 for Mac. It seems that the QtDeclarative is no longer available. So, the only change I did was to remove this line…

Mika
- 1,195
- 6
- 22
- 34