Questions tagged [qt-quick]

Qt Quick is a framework that provides a declarative way of building custom, highly dynamic user interfaces with fluid transitions and effects, which are becoming more and more common especially in mobile devices.

Qt Quick is a framework that provides a declarative way of building custom, highly dynamic user interfaces with fluid transitions and effects, which are becoming more and more common especially in mobile devices.

Qt Declarative is a runtime interpreter that reads the Qt declarative user interface definition, QML data, and displays the UI that it describes. The QML syntax allows using JavaScript to provide the logic, and it is often used for this purpose. It is not the only way, however: logic can be written with native code as well.

Qt Quick and QML are officially supported in Qt 4.7 (with Qt Creator 2.1), and it is a commercial option in mobile applications when Qt 4.7 is available for deployment in Symbian and Maemo/MeeGo devices.

Qt Quick provides everything needed to create a rich application with a fluid and dynamic user interface. It enables user interfaces to be built around the behavior of user interface components and how they connect with one another, and it provides a visual canvas with its own coordinate system and rendering engine. Animation and transition effects are a first class concept in Qt Quick, and visual effects can be supplemented through specialised components for particle and shader effects.

Video Course

Pluralsight offers a course, Qt Quick Fundamentals, which specifically targets learning Qt Quick. It is part 2 of a three part course on the Qt framework.

Pluralsight is subscription based, but if you're only interested in Qt or Qt Quick you can send the author @todgentille a private tweet and request a week long VIP pass. You'll get unlimited access to the higher subscription level for a week that allows viewing online and offline and you can download the course materials.

884 questions
0
votes
1 answer

How to find if QuickItem is topmost in QmlScene (z-order)?

Currently I am developing in Qt / Qml, using QtQuick. I came to a point, where I need to find out, if an item of my scene is topmost. That is, I need to find if the item has the highest z-coordinate. I tried to build an algorithm, using childAt and…
MattW
  • 461
  • 3
  • 10
0
votes
1 answer

How to call function on a other page

I don't found my answer in my issue , so i would like to explain. I have some QML pages, i manage my pages with a StackView object and i would like to call a function that is at page 1 from page 2 ... For example //Page 1 Item{ id: page1 function…
yekmen
  • 127
  • 9
0
votes
0 answers

How to import QtQuick components

I want to use some QML elements from module Qt Components (or something like that) and I don't know how to import them in QML file. QtCreator hasn't code completion in this case, but I remember, there was a line like: import QtQuick.Controls…
trivelt
  • 1,913
  • 3
  • 22
  • 44
0
votes
1 answer

QML: Anchors within tabs

I am trying to create a simple GUI with QML, when the following occured: Text items can be aligned using anchors under the ApplicationWindow Copying the same code snipped (i just changed the id’s) inside a Tab results in an error: ReferenceError:…
jrikken
  • 1
  • 2
0
votes
0 answers

Where is QtQuick 2.3?

I want to learn qt by using the tutorial below http://qt-project.org/doc/qt-5/gettingstartedqml.html The tutorial are using QtQuick 2.3 which I dont have. I only have QtQuick 2.2(autogenerated when creating new project). Where do I find this QtQuick…
Syaiful Nizam Yahya
  • 4,196
  • 11
  • 51
  • 71
0
votes
2 answers

QML items clone / duplicate

I'm quite new to the Qt world, but can't find a solution for this problem. I've have a view using a repeater of Image + ColorOverlay. Rendering is quite slow, here is what I actually use : Column { Repeater { model: 100 Rectangle…
Noth
  • 1
  • 2
  • 3
0
votes
1 answer

QT5.3 How can I add my Qobject to the QQmlEngine and access it's Properties via QML?

I'm starting out with QT5.3, or rather QT in general. Now I basically want to program C/C++ console applications and add a front-end. I created a QT Quick Application and have trouble getting my back-end code to interact with the front-end. What I…
ViGi
  • 140
  • 1
  • 11
0
votes
1 answer

Smooth movement transition

Consider that there is a vehicle moving towards a target at a constant speed. At a certain point, it sees a target and should slow down in order to come to a complete stop. How can this be achieved with animations in Qt Quick, keeping in mind that…
Mitch
  • 23,716
  • 9
  • 83
  • 122
0
votes
1 answer

Themed Text control doesn't work in QML Application

I have a simple application with the following QML ApplicationWindow { visible: true width: 640 height: 480 Column { Text { text: "Hello World" color: "red" font.pixelSize: 24 } …
Andrew Marshall
  • 1,469
  • 13
  • 14
0
votes
0 answers

Dynamically created Qt component cannot access parent

I am dynamically trying to add Columns to my UI and then anchor them with the parent and nearby element, however parent is always null. columns[i] = Qt.createComponent("Column.qml"); columns[i].createObject(rectangle1,{id : "column".concat(i),…
HackToHell
  • 2,223
  • 5
  • 29
  • 44
0
votes
1 answer

ScrollBars don't show up in Qt Quick ScrollView

I have two ColumnLayout and I want them to be scrollable, however the scroll bar doesn't show up. If I remove one column, it shows up. The Code: ApplicationWindow { id: applicationWindow1 visible: true width: 400 height: 500 …
HackToHell
  • 2,223
  • 5
  • 29
  • 44
0
votes
0 answers

Assigning an ID to a dynamically loaded Qt element

How can I assign a id to a dynamically loaded Qt element. I tried, var Component1 = Qt.createComponent("Column.qml"); var g =Component1.createObject(column1,{"anchors.left" : column1.right, "id" = xxxx}); And also g.id=xxxx; Both don't work. Is…
HackToHell
  • 2,223
  • 5
  • 29
  • 44
0
votes
1 answer

Qt doesn't create a component and doesn't return an error

I am trying to dynamically create a element using QT, however it doesn't work and no error message is printed. Compoenent.Status is never ready. It doesn't even go to Compoenet.Error stage :( Component.onCompleted: { var Component =…
HackToHell
  • 2,223
  • 5
  • 29
  • 44
0
votes
1 answer

Using QAbstractItemModel to return QQuickPaintedItem for use in QML delegate

I implemented a subclass of QQuickPaintedItem to be used in QML which works on its own when registered through qmlRegisterType Instances of this class are created at application startup and put into a QList that is stored inside a subclass of…
MrBolton
  • 47
  • 6
0
votes
0 answers

exe file in Qt Quick 2.2 can't load corectly

I have a program in Qt Quick 2.2 for display images and videos by transition. I have windows 32 bit and Qt 5.3.1 (msvc2010 Opengl) on my computer.I set build configuration to release and build my program and add this dll files to release folder…