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

QT Quick Application Window embed C++ object

I have a QT Quick 2.2 ApplicationWindow and I want to use inside this ApplicationWindow a C++ object. I know QQuickView view, but this work only for objects which are derived from QQuickItem (not for ApplicationWindow). I also know qmlRegisterType,…
user3734670
  • 370
  • 4
  • 15
1
vote
1 answer

Is it possible to transmit pointer to model from C++ to Qt Quick TableView?

I have class with QSqlDatabase and with pointer to QSqlTableModel in one class. I use pointer to QSqlTableModel, because initialization of database is going on in constructor and after that I create QSqlTableModel using this database (also in…
alr
  • 1,332
  • 3
  • 13
  • 23
1
vote
1 answer

Displaying a web page in Android using Qt for Android

I've heard that QtWebKit is not available in Android. But now I'm developing an application for Android using Qt/QtQuick2 and I need to let users login to their Instagram profiles through my application. And this needs to display a web page from…
s4eed
  • 7,173
  • 9
  • 67
  • 104
1
vote
1 answer

Qt: Add qml.qrc to git repository or to .gitignore?

I'm wondering weather the qml.qrc file gets completely generated by QMake through the other *.qml files? So can I safely add the qml.qrc to the .gitignore file? Or does it contain some other important information such as which files it…
mozzbozz
  • 3,052
  • 5
  • 31
  • 44
1
vote
1 answer

Qt application crashes on exit, OS applies "fault tolerant heap shim"

I can't isolate what is causing the application to crash on exit. What adds further confusion is that it doesn't always crash, sometimes it does, sometimes it doesn't and it seems to be completely arbitrary. The sample basically crates a custom…
user3735658
1
vote
1 answer

Can't edit object properties in QML javascript file

Can someone please explain to me what I am doing wrong with the following setup. The idea is to develop the game engine in engine.js and the UI logic is in the qml file. page.qml Page { id: page SilicaGridView { id: listView …
Juho Rutila
  • 2,316
  • 1
  • 25
  • 40
1
vote
0 answers

issue with import QML in QtQuick 2.0

I have 3 files, main frontend.qml and additional qml file for button and want to use button QML in mail QML but got error: Starting .../qmlscene .../qml/frontend.qml file:///.../qml/frontend.qml:28 Cannot assign to non-existent property…
xiaose
  • 616
  • 1
  • 7
  • 19
1
vote
2 answers

Play MJPG video using qml object (ubuntu)

I have this application where I display content together with a video file. The video files are either in image/jpeg (MJPG format according to vlc) or video/x-h264 format. To do this, I use a mediasource combined with a video output element to…
timovdw
  • 311
  • 2
  • 10
1
vote
1 answer

QML How to make QAbstractTableModel with qml tableview checkable

I’m new in QT. I want to make every row of qml tableview checkable but it doesn’t work. The tableview with data is shown successfully but it’s not checkable. It seems that flags() and setData() functions are never run and role==Qt::CheckStateRole…
1
vote
2 answers

Zoom with finger touch on QML and buttom for reset zoom

How to QML with two fingers to zoom in the photo? I wrote the following code for the Click also I want a button for reset zoom to screen size and i want a buttom for back but for each screen position is different please help me. Thank you import…
saman9074
  • 45
  • 2
  • 8
1
vote
1 answer

Return value from QML Window to parent

I use QML to build GUI in my app + simple logics. At some step I open dialog and after closing it I want to get back a result value. This is sample code: Button { id: myButton onClicked: { var component = Qt.createComponent("Dialog.qml"); …
folibis
  • 12,048
  • 6
  • 54
  • 97
1
vote
1 answer

QtCreator/QMake - How to add .qmlproject (QtQuick2 UI app) into subdirs .pro project?

I have folders: dev_root all.pro app app.pro ext ext.pro ui ui.qmlproject I have .pro file: TEMPLATE = subdirs SUBDIRS += \ app \ ext \ ui ext.subdir = ext app.depends = ext ui.depends =…
Bernd Jacobi
  • 571
  • 2
  • 5
  • 18
1
vote
1 answer

Extension Plugin compilation for Android fails due qmldir not found

I have QML extention plagin created by Qt Creator wizard. When I try to compile it for Android, compilation fails with message: mingw32-make[1]: Entering directory…
Bernd Jacobi
  • 571
  • 2
  • 5
  • 18
1
vote
1 answer

QtQuick TableView CheckBox delegate calling setData function of QAbstractTableModel

I have trouble connecting TableView in qml and setData function of QAbstractTableModel in QT . My idea is to be able to check activities as "done" via CkeckBox delegate. I tried overwriting the setData function to work with row instead QmodelIndex…
1
vote
1 answer

Call a slot from QML which requires a QImage or QPixmap

I have a slot in my application backend which requires a QImage or QPixmap. Now I want to call it from my QML frontend by providing a png from the resource file: sessionManager.createUser("user", "qrc:///src/sessionManager/qml/Assets/user.png") But…
avb
  • 1,701
  • 5
  • 22
  • 37