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
13
votes
2 answers

Qt on android, reducing the binary size

Am using Qt to build app on android, Qt Quick mainly its really nice, but my main problem is the start up size is around 27 MB which is huge for initial size.. is there a way to reduce this size ?
Creative Coder
  • 409
  • 6
  • 15
13
votes
4 answers

How to create and use C++ objects in QML Javascript

My app uses both c++ and QML. I've defined several objects in C++ part to access SQL etc. It looks like: class MyObject : public QObject { Q_OBJECT public: MyObject(QObject *parent = 0); Q_INVOKABLE void someFunction(const QString…
folibis
  • 12,048
  • 6
  • 54
  • 97
13
votes
1 answer

What is the difference between GridLayout and Grid

What is the point of having a GridLayout component, when there is a Grid component? From what I can tell, they seem to be doing the same thing. Grid: https://doc.qt.io/qt-5/qml-qtquick-grid.html GridLayout:…
bobbaluba
  • 3,584
  • 2
  • 31
  • 45
13
votes
2 answers

QML - MouseArea - propagating onPositionChanged

Is it possible to propagate a MouseArea's positionChanged event to an underlying one? I've tried to set the mouse.accepted to false for any existing signal handler of the top-most MouseArea as well as setting the propagateComposedEvents to true.…
Konrad Madej
  • 1,271
  • 1
  • 11
  • 19
13
votes
3 answers

Exe file does not run without QtCreator

I installed Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB) Then I created simple Quick 2 application and compiled it. Application is located in the its folder, and apllication run from QtCreator. And I want to run this exe file without QtCreator.…
Harrix
  • 547
  • 3
  • 8
  • 17
12
votes
1 answer

QML Drag and Drop (free positioning)

There are a lot of QML Drag and Drop Examples out there, but none of them really helps me, because in all the examples you can drag an element into another, where it is centered and all other elements you drag above are laying over it. Is there a…
ndothenning
  • 137
  • 1
  • 1
  • 5
12
votes
2 answers

Issue with drawing an Qml Item with raw OpenGL calls

I want to draw a single item in QtQuick scene using raw OpenGL calls. I have decided to take approach suggested in this question. I have created a Qt Quick item deriving from QQuickFramebufferObject and exposed it to QML as Renderer: (code is based…
pawel
  • 231
  • 2
  • 6
12
votes
3 answers

FileDialog in QTQuick (QML): Save file under given name

We're building a Qt Quick app, that must be able to save a file under a given name. In the FileDialog component you can only set a directory. This is not very user-friendly, since you don't want to type in a filename by hand every time you download…
Simon Warta
  • 10,850
  • 5
  • 40
  • 78
11
votes
6 answers

How do I read in FILE contents in QML?

I just need something similar to Fstream to read file IO in QML. Why is there no file IO?
Christopher Peterson
  • 983
  • 7
  • 22
  • 32
11
votes
3 answers

Placeholder text in QML TextEdit

I am looking for a way to show a text hint stating the expected input as advice for the user. Take the Google search bar for example: Is there a property I am missing, or is this something that has to be achieved through scripting?
Herr von Wurst
  • 2,571
  • 5
  • 32
  • 53
11
votes
4 answers

Add elements dynamically to SplitView in QML

I am working with QML and I want to add elements to SplitView dynamically eg. onMouseClick, but so far I didn't find the answer. What I've found out so far is that the SplitView has it's default property set to it's first child's data property. So I…
user1913403
10
votes
6 answers

QML - main window position on start (screen center)

How I can do following: I’d like show my main window on start on the center screen.
AntyaDev
  • 135
  • 1
  • 1
  • 8
10
votes
3 answers

"Design" button grayed out in Qt Creator for QML Project

I'm on a Kubuntu 11 system and trying out my first Qt Quick project. As this is Kubuntu I'm just running with the Qt that came with it, which has worked fine so far. I asked Qt Creator to create the sample "Hello World" project from Qt Quick. But…
10
votes
2 answers

Best way to access a cpp structure in QML

I need to pass structures between cpp and QML. If i use property i should create an individual set and get functions, My structure contains minimum 5 members so i felt it's not good to use set and get for all those members. Following is an example…
pra7
  • 834
  • 2
  • 21
  • 50
10
votes
2 answers

QML Dialog with focused textField

I am working on Qt quick application and I wanna open dialog. In this dialog window is TextField and I want to set focus to this textField after dialog is open. This code doesn't work. function newFolder() { newFolderDialog.visible = true …
user3412372
  • 185
  • 1
  • 1
  • 6
1 2
3
58 59