Questions tagged [qquickwidget]

QQuickWidget is a class from the Qt Toolkit which provides a widget for displaying a Qt Quick user interface. This is a convenience wrapper for QQuickWindow which will automatically load and display a QML scene when given the URL of the main source file.

Documentation can be found here (Qt5).

41 questions
0
votes
1 answer

Set QML theme using QQuickWidget

I have a QMainWindow application that shows a QWidget (FormOverview) that in turns embed a QQuickWidget. I'm not able to set the QML theme. I created a "qtquickcontrols2.conf" and added it to…
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
1 answer

How to add Switch Qml to qt widgets?

I have a qml file ToggleSwitch.qml which I want to import to my widgets. Basically I want to integrate qml with widget ToggleSwitch.qml Switch { checked:true } In Mainwindow.cpp I want do something like this Mainwindow.cpp…
Rubina
  • 123
  • 1
  • 17
0
votes
0 answers

Qml FileDialog is rendering behind main window with QQuickWidget (QT 5.9.1)

I am building a desktop application using QML with QQuickWidget and QMainWindow, everything looks work fine except to the FileDialog. When I open a window using FileDialog it works flawlessly at first time but in the second time and so on the…
Spes
  • 51
  • 6
0
votes
0 answers

How to lay a QQuickWidget (with transparency) on top of a QWidget

I'm trying to use a QQuickWidget as an overlay over a QWidget. The QQuickWidget contains some buttons and a couple other widgets laid out along the bottom. I've found that I can get the QQuickWidget to properly overlay the QWidget by using a…
Knute Knudsen
  • 1,049
  • 1
  • 12
  • 24
0
votes
1 answer

Adding QQuickWidget in QStackedWidget

I am trying to add a qquickwidget along with some other qwidgets in qstackedwidget. But when I am trying to set the current widget to the qquickwidget nothing appears on the window. Is there something else that need to be done? I am also setting the…
Vishwas
  • 506
  • 1
  • 5
  • 20
0
votes
1 answer

Instantiating QML object in existing C++ QT Project

We have an existing QT project written in C++, and we want to add something like the mapViewer example project to our existing UI. We can't figure out how to instantiate the mapViewer, and invoke the method that initializes/displays it. Following…
0
votes
1 answer

How to drag a qquickwidget?

I have a QQuickWidget inside main window. This seems to work, however, it will shake violently when dragged. //main.qml Rectangle{ id: root property point dragStart signal moved(point offset) MouseArea{ id:…
Zen
  • 5,065
  • 8
  • 29
  • 49
0
votes
2 answers

QQuickwidget grab image outside window area

This is a sequel to another question here in which I was not precise while describing my goal. As mentioned in the linked question, I wish to save a QML which is embedded in a QQuickWidget and it is larger than the window size. The QQuickWindow…
0
votes
2 answers

MultiPointTouchArea behaviour in QQuickWidget

I'm trying to get the MultiPointTouchArea to work correctly inside a QQuickWidget. Consider the following example qml file(MultiPointTouchTest.qml): import QtQuick 2.0 Rectangle { width: 360 height: 480 color: touch1.pressed ? "gray" :…
Player
  • 1
  • 3
-1
votes
1 answer

QQuickWidget Custom Resizing Mode

Note: This a self answered question. It cause me some headache to solve it in past, so I think it is worth to share. I have a qml application designed for HD resolution(1366x768). It's using QtQuick.Layouts, so adaptable to custom resolution. But…
Kao
  • 537
  • 5
  • 12
-1
votes
2 answers

Using QScrollArea with QQuickWidget

I have a QQuickWidget. I'd like to make it autosizable according to its QML content and to provide both horizontal and vertical scrollbars in case when its content cannot fit the window. I put the QQuickWidget inside a QScrollArea and added layout…
Vercetti
  • 437
  • 1
  • 6
  • 17
1 2
3