Questions tagged [qtquick2]

Qt Quick is a modern user interface technology that separates the declarative UI design and the imperative programming logic. Instead of the traditional C++ APIs of Qt, the presentation layer of the application is written with a Qt-specific declarative language called QML.

The Qt Quick module is the standard library for writing QML applications. While the Qt QML module provides the QML engine and language infrastructure, the Qt Quick module provides all the basic types necessary for creating user interfaces with QML. It provides a visual canvas and includes types for creating and animating visual components, receiving user input, creating data models and views and delayed object instantiation.

The Qt Quick module provides both a QML API which supplies QML types for creating user interfaces with the QML language, and a C++ API for extending QML applications with C++ code.

For more details, see the introduction to Qt Quick page in the Qt reference documentation.

2305 questions
1
vote
1 answer

Listview does not print the model using C++/Qml

I am currently trying to create a listview based on a C++ QStringList(QList). The problem here, is that the list does not show up, neither with a pre-filled list nor with with my updated list. The same append with a tableView Here is some…
Supermomo
  • 81
  • 6
1
vote
1 answer

QTCreator 3.1 design tab not working

I’m currently using QtCreator 3.1 and qt-everywhere-opensource-src-5.2.1 on Ubuntu 12.04 My project is correctly working, i.e., i can build it and run without any trouble. But i’ve got some problems with the design tab inside Qtcreator. First, on…
user3112140
  • 145
  • 1
  • 7
1
vote
2 answers

How do I cast QML items to corresponding C++ Item in Qt Quick

My question is best clarified by an example. I have QML with a Text{} item. In C++ I can get to this item and I have no problem using qobject_cast to turn anything into a QQuickItem*. But how do I turn it into the closest corresponding item so that…
Tod
  • 8,192
  • 5
  • 52
  • 93
1
vote
1 answer

Pop to specific item in QtQuick StackView

I am using Qt 5.2.1 on Android, and I have a main application window with code as below (the example is a bit contrived, but it illustrates accurately what I am doing): property Component mainMenuView: MainMenuView { onMoviesSelected: { …
caprica
  • 3,902
  • 4
  • 19
  • 39
1
vote
1 answer

Does QtQuick 2 support glBindBuffer?

it seems i cannot use glBindBuffer, glGenBuffer in the inherited-class of QQuickPaintedItem. I already try to include , but it doesn't work and I also try to use GLEW in QQuickPaintedItem. It looks like Qt would undefined those functions in…
tirth
  • 813
  • 1
  • 8
  • 16
1
vote
2 answers

Disable font antialiasing in QtQuick Text element

I would like to turn-off font antialiasing for a Text element in QtQuick 2. I tried to set both antialiasing: false and renderType: Text.NativeRendering but nothing changes... how can I do that? Is it possible?
Morix Dev
  • 2,700
  • 1
  • 28
  • 49
1
vote
2 answers

How to feed output of ShaderEffect back into the same ShaderEffect in QML/QtQuick2

Question I want to feed the output of a ShaderEffect into itself, effectively generating a feedback loop. My naive attempts has included simply linking a ShaderEffectSource and a ShaderEffect like so: ShaderEffectSource { id:buf1; …
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95
1
vote
0 answers

QtQuick 2 Blur Effect Background

I have a semi-transparent window and I'm trying to apply a blur effect on the background. I tried FastBlur from QtGraphicalEffects on my root element(Rectangle) but it doesn't seem to work. The qml file is loaded into a QQuickVIew from my main c++…
George Sofianos
  • 1,141
  • 1
  • 13
  • 26
1
vote
0 answers

Swapping items in a QML GridView?

I've been trying to swap elements in the following example: http://qt-project.org/doc/qt-5.0/qtquick/draganddrop-views-gridview-qml.html If the elements that I am dragging are next to each other, it works fine of course. But what I would like to do…
Amy
  • 1,814
  • 2
  • 23
  • 38
1
vote
1 answer

Nested Repeaters QML Qt

Row { Rectangle { width: 10; height: 20; color: "red" } Repeater { model: 10 Rectangle { width: 20; height: 20; radius: 10; color: "green" } } Rectangle { width: 10; height: 20; color: "blue" } } Here I want…
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
1
vote
1 answer

Qt quick controls - where is defined ScrollView orientation?

i created my custom style for ScrollView, but actually i don't know how to check what orientation of scroll is it (horizontal or vertical? I need use different image for each of them). source code of scrollview style In this source code, that i…
Krab
  • 6,526
  • 6
  • 41
  • 78
1
vote
1 answer

Qt - simple QML application doesn't work

I have just this simple qml application, that should output background color, when is clicked. Actually it still outputs undefined. import QtQuick 2.1 import QtQuick.Controls 1.0 ApplicationWindow { title: qsTr("Hello World") width: 1400 …
Krab
  • 6,526
  • 6
  • 41
  • 78
1
vote
1 answer

App does not close if I set QQuickView-WindowContainer as central widget

My application is designed in that way that different plugins can set the central widget of the main windows to show the desired content. This works so far. But if I set a QQuickView-WindowContainer as central widget, the app does not quit when I…
avb
  • 1,701
  • 5
  • 22
  • 37
1
vote
2 answers

QML transitions with multiple (from, to) matches

I have a simple QML script with a four states which you go through a cycle, say the states are one, two, three, four. The transition from one to two and from three to four is the same. Is there a simple way to define this without duplicating the…
Zane
  • 926
  • 8
  • 21
1
vote
2 answers

Buggy results from property bindings, object position breaks on insert

I create a tree of objects, the tree is drawn using very simple logic: each object is as big as its own representation plus that of its children (and their children and so on...) if the object is the first child of its parent it is drawn indented…
user2341104
1 2 3
99
100