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
1
vote
1 answer

embedding qquickwindow inside qwidget

how to embed qquickwindow into qwidget ? my code is like this one: mainwindow.cpp #include "mainwindow.h" #include #include #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) :…
user3453753
  • 357
  • 4
  • 15
1
vote
0 answers

QQuickWidget with QML inside. Show another QML above but not in another window

I have a QQuickWidget (MovableWidget) with a QML inside (QML1: Test.qml) This QML has a button, and when clicked I want to show/hide another QML (Test2.qml) above QML2, but not in another window (in Windows, both panels must be in the same 'Task…
Diego
  • 336
  • 2
  • 21
1
vote
1 answer

How to deploy Qt/QML application for Windows XP

My QML application uses some Particle effect, I called QML object by QQuickWidget, I tried to deploy a QML application for Windows by windeployqt tool, but when I run it on other PC (using Windows XP) what I received just blank (or black) widget (at…
Kha Tran
  • 193
  • 1
  • 1
  • 10
1
vote
1 answer

make quickwidget background transparent

I have created 2 QWidget and 1 QQuickWidget in main window. The QQuickWidget uses a source qml file. I want to set background transparent for two QWidgets and the QQuickWidget. Can anyone help me to make the background of the QQuickWidget…
1
vote
1 answer

Multiple QQuickWidgets with one QQmlEngine

I've got a problem and hope you can help me. I have multiple QQmlWidgets where different instances of same components should be shown. The components are created at runtime and use specific properties from it's parent widget. The problem is, that…
0
votes
0 answers

Unable to make QQuickWidget show taskbar shortcut

I am unable to make my QQuickWidget, launched as a popup, show a taskbar shortcut in Windows. Details of the problem: I have an application that is hosted inside a "suite", which uses QWinHost to make all children apps lodge inside. This method has…
Thalia
  • 13,637
  • 22
  • 96
  • 190
0
votes
0 answers

Widgets+QML Android

everyone! For my application I need to use QGraphicsView and the QML interface. For this I have two ways: QQuickWidget. QQuickView + QWidget::createWindowContainer But for the two approaches I have problems. Everything works on Windows but…
0
votes
0 answers

QML file in application cannot detect touch but only works with mouse clicks

I've been looking everywhere online but cannot find a working solution. When the application is used on a Desktop computer or laptop, it works fine. Mouse clicks are working, it's when we try with a device with a touch screen like surface pro,…
0
votes
1 answer

How to change the language with a radioButton in Qt? Qtranslator Dynamic Language

I have a simple app that first asks for language (I have already done the qm and ts files) and it works: //main.cpp int main(int argc, char *argv[]) { QApplication a(argc, argv); QTranslator T; QStringList langs; langs << "Espanol"…
0
votes
3 answers

Loading QML from QString variable

Is it possible to use QQuickwidget::setSource() with variable (QString or QByteArray)? I know that I can load a file (or resource): ui->quickWidget->setSource(QUrl::fromLocalFile(":/qml/Example.qml")); But if I have the qml code stored in a…
Jiří Maier
  • 177
  • 7
0
votes
2 answers

Adding a high number of QML objects in a QWidget application using QQuickView or QQuickWidget poses performance problem

I'm developping a Qt application in which the user can add QML objects inside a QGraphicsScene. The available QML objects are listed and the user can add as many as he wants. Until now, I used QQuickWidgets. The QGraphicsScene contains a top-level…
M. Anderson
  • 15
  • 1
  • 1
  • 6
0
votes
1 answer

QML and QQuickWidget

I am new to qml but I want to add a circle gauge to the QQuickWidget by referring to the dashboard of the QT example. Below is my codes. guagetest.pro QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets quickwidgets CONFIG +=…
0
votes
1 answer

QQuickWidget cannot promote

We've got trouble on promoting widgets. When we try to promote QQuickWidget to our class, we can't see QQuickWidget as base class despite other base classes. However sometimes it appears unless doing nothing special. Do you think this is a bug or is…
Monster
  • 11
  • 3
0
votes
1 answer

Qt QQuickWidget conflicting with QGraphicsVideoItem

I have been using QGraphicsScene and QGraphicsVideoItem as my canvas. And to control them, I've chosen to use qml and QQuickWidget to develop custom objects easily for a different module. However, I quickly ran into an issue where the…
Mervyn
  • 11
  • 3
0
votes
0 answers

Converting QtCreator UI file containing custom plugins to .py via PyQt5

I have created a plugin which is a gauge. I used QQuickWidget to create the plugin. This is my plugin definition class and it works perfectly and will be added to QtCreator components: class QDESIGNER_WIDGET_EXPORT AnalogeGauge : public…
Mosi
  • 1,178
  • 2
  • 12
  • 30