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

How to use qt resources file containing .js and .qml files (Qt Quick 2 qmake...

Thank you, JapieKrekel, I did it and now it works fine! Program starts faster than before (but unfortunately slower than Qt Widgets application) and after changes I have to only press “Run”. I have one...

View Article


Layout (ColumnLayout) margins doesn't work in SplitView

Hi. I have SplitView containing ColumnLayout on my Qt Quick application window. It seems that ColumnLayout ignores margins. Here is the minimal running example: import QtQuick 2.1 import...

View Article


Make shared library with QML files

I have tried to load resource in library code, and Button.qml is not visible (file.exists() returns false). I really don’t know what is the problem. In application if I create QRC file and add QML file...

View Article

QtQuick 2.0, read a QList from C++

Have you tried: @egcView.allfiles.length@ Thank you for your reply. I don’t know where is the index iterator o which property. In the tutorial seems this task is made by QQmlListProperty. But in my...

View Article

Slow qml animation on linux

Everything is connected to the drivers from intel and opengl. And tunning systems. After testing on pure gentoo linux performance equaled the windows 7 – the animation runs smoothly, although the CPU...

View Article


[SOLVED] Is it possible to conditionally handle a gradient

Thank you+

View Article

Layout (ColumnLayout) margins doesn't work in SplitView

Thank you for reply, Jens. I’m sorry for vague example. It is too primitive to express the meaning. What I’m trying to achieve is a program for drawing circles/ellipses with different algorithms. Sorry...

View Article

[SOLVED] Set whether qmlscene (Qt Quick 2 application) should use the...

Thank you, Jens. “why don’t you just prototype your qml project using qmlscene and simply create a basic application launcher as the last step before handing off your application?” I thought about...

View Article


Register QTreeView To Qml using QGraphicsProxyWidget (QtQuick 2.0)

I am trying to embed QTreeView into QML using QGraphicsProxyWidget. When I run my programme, there is a error hint that tells me my registered item is a QtQuick 1.0 item and it cannot be used in...

View Article


how to disable font kerning in TextEdit

Here is the condition, The user will use textEdit to input some text, when complete, I will use a row of Text component to replace the TextEdit to run animation on every letter. import QtQuick 2.0...

View Article

Calculating bounding shape of group of elements without corners

Hi guys, First just wanted to say Hi to everyone here. I have a little problem with not so much execution but an idea with how to calculate a ‘bounding shape’ for a group of objects. So in the above...

View Article

Reference error: Can't find variable...

Hey there! Currently trying to follow one of the game guides on qt-project http://qt-project.org/doc/qt-4.8/declarative-tutorials-samegame-samegame1.html. However when I run the main qml file named...

View Article

[SOLVED] Layout (ColumnLayout) margins doesn't work in SplitView

Yes, the alignment was added after “columns” and “rows” was added, so that makes sense.

View Article


Register QTreeView To Qml using QGraphicsProxyWidget (QtQuick 2.0)

No, I’m afraid that is exactly what it means. QGraphicsProxyWidget is a QGraphicsItem and not a QQuickItem. Since QtQuick 2 is not built on top of QGraphicsView like QtQuick 1 was, it is no longer...

View Article

Speeding up Rendering of Repeater Item containing ShaderEffects

I’m new to Qt/QML. At the moment I have written a QML component with a bunch of visual components utilising animations, however when the animations aren’t active I’d like to render everything in the...

View Article


How does QTreeWidget parse SQL tables?

Hi, I’m debugging some legacy code (PyQt 4.4.4 and Python 2.7, ugh) and I need a QTreeWidget to access an existing mySQL database and display the rows of a certain table as topLevelItems with the...

View Article

[SOLVED] QML Qt.createQmlObject how to refer variable

Thanks:)

View Article


MouseArea: making it stop capturing mouse events

I have set an uniform grid of multiple MouseArea’s, all of them with hover enabled. When you right-click on one MouseArea and keep it pressing it, that MouseArea captures all mouse events, even when...

View Article

[SOLVED] Problem with Canvas loading pictures

Your are right. I have inserted the following line between line 16 and 17:                 canvas.unloadImage(canvas.path) Now it...

View Article

Reference error: Can't find variable...

Argh, thanks…didn’t realise that they skipped the part where they explained the floodFill function. Guess it sometimes would be worth it to read the guide a bit more thoroughly. Once again Thank you!

View Article
Browsing all 4972 articles
Browse latest View live