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

QtGraphicalEffects qml files into qrc?

It turned out QtGraphicalEffects are linked as .qml. So when I tried to deploy my QtQuick2 application on windows, I had to copy and paste QtGraphicalEffects directory...

View Article


About rendering a QML Item into pixmap

In case someone’s interested, here’s how I ended up doing this. It was only tested in my own special case where it works, it might not work properly elsewhere. The draw order is important.. anyway:...

View Article


Slow qml animation on linux

Hi, I try to write a program for such a device Uniq-POS 55.02 [unisystem.kiev.ua]. I plan to use it on Linux. And all I test on precompiled Qt5.0.2 But faced with the following problem that occurs –...

View Article

how to install QtQuickControls on Qt 5.0.2?

It’s in alpha ATM, should move to beta soon (it will get precompiled installers in beta stage). Release should happen probably somewhere in June, then.

View Article

[QT Bug? ] Layering of custom QQuickItem-based qml item and built-in qml items

Hello, I have a problem that I am trying to solve and I’ve now started to believe its a bug. I have created an item named “Node” that is derived from QQuickItem and draws a circle. If I do something...

View Article


[QT Bug? ] Layering of custom QQuickItem-based qml item and built-in qml items

Trying this:     Rectangle {         x: 50         y: 50         width: 100...

View Article

Make shared library with QML files

Is this possible? I have managed to make library with C++ classes and to import/use them in application, however I cannot make QML files visible to application. Can someone give me example or tutorial...

View Article

Create built-in quick component in C++

I need to create QQuickText in C++. I use this code: QQmlType *type = QQmlMetaType::qmlType("QtQuick/Text", 2, 0);   if (type)   {     QObject *obj...

View Article


QGraphicsProxyWidget and KeyNavigation - not a QDeclarativeItem?

I’m using Qt 4.8.4 on Windows and OSX. I have a QGraphicsProxyWidget that wraps a combobox. #ifndef STDCOMBOBOX_H #define STDCOMBOBOX_H   #ifdef QML_TESTBED #include <QComboBox>...

View Article


Make shared library with QML files

Use a QRC file for the “internal” QML-document-defined-types. In the module specification qmldir file, don’t list those types which you don’t want exposed to users.

View Article

Is there any way to expose a different 'parent' to children for anchor'ing to?

If I have a file, call it Background.qml, that looks a bit like this: import QtQuick 1.0   Rectangle {     id: outer     color: "red"...

View Article

Is there any way to expose a different 'parent' to children for anchor'ing to?

Never mind :), my suggestion was the same as yours.

View Article

Create built-in quick component in C++

See this [qt-project.org] guide (it’s for QtQuick 1, but it works the same in QML2, you just need to change class names).

View Article


QML Qt.createQmlObject how to refer variable

Hi all. I have a QML & JavaScript code:  Grid {        columns: 4        y: 50      ...

View Article

QML Qt.createQmlObject how to refer variable

'import com.nokia.meego 1.1; Label {text: wydatek.nazwa(' + j + ')}'

View Article


QtQuick 2.0, read a QList from C++

Hi all. I’m having some issues with extending QtQuick 2.0 with C++. I want to show in a gridview, following this tutorial. I’ve done my changes and I wanna show in the gridview is a...

View Article

Problem with drag and drop in qtquick 2

Hello, I tested a example to do somme drag and drop. Here is my code import QtQuick 2.0   Rectangle {      width: 800      height: 800...

View Article


Problem with Canvas loading pictures

I guess that the loadImage will not load the image again if already loaded. Meaning that when you call loadImage on the third click the call to loadImage(…1.png) will not trigger onImageLoaded. You...

View Article

Is it possible to conditionally handle a gradient

I’ve added a gradient to a QML button that I’ve created for use in other areas of our UI. I need to handle the case where the color of the button is transparent. Is it possible to conditionally display...

View Article

Set whether qmlscene (Qt Quick 2 application) should use the system's...

I want my Qt Quick 2 program to use default Qt Fusion Style, but not system style. When I had Qt Quick 2 Application (see this thread [qt-project.org]) I used this line in main.cpp:...

View Article
Browsing all 4972 articles
Browse latest View live