Questions tagged [qquickview]

In the QT framework, the QQuickView class provides a window for displaying a Qt Quick user interface.

In the QT framework, the QQuickView class provides a window for displaying a Qt Quick user interface.

http://qt-project.org/doc/qt-5/qquickview.html

40 questions
32
votes
2 answers

What is the difference between QQmlApplicationEngine and QQuickView?

I'm using QQmlApplicationEngine as follows: QGuiApplication app(argc, argv); QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); app.exec(); But now I want to enable multisampling for my app, and…
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
9
votes
1 answer

How to embed a QML view into a native window

I'm having a problem trying to insert a QML view into a native OSX window. I know it's possible, but I don't know what I'm doing wrong. Basically, my goal is, given a native NSView* to then embed a QML based widget. The problem is that I get it to…
bitwise
  • 541
  • 6
  • 16
9
votes
1 answer

Multiple windows in a single project

I have a requirement for my project to display two QML Windows each on one of the screen (one sender, one receiver). Both of the .qml requires me to include some Cpp models inside hence, I'm using QQmlApplicationEngine to register the Cpp models. I…
angelhalo
  • 131
  • 1
  • 1
  • 8
8
votes
1 answer

QQuickView new-delete-type-mismatch

When compiling with g++ -fsanitize=address I get a new-delete-type-mismatch. Is this code wrong? Or is this a Qt Bug? I found this in a large application and broke it down to the code below. I want to show a QML Item from C++ with QQuickView. But…
8
votes
2 answers

How to change title of a QtQuick 2 window?

I am trying to change the default window of my project but it doesn't work. I am using QtQuick 2.0. Tried importing QtQuick.Window 2.0 and making Window{} as root object instead of Rectangle{} but it doesn't allow window objects as root.It gives me…
adi
  • 417
  • 4
  • 25
5
votes
1 answer

Add QML(QQuickView) to existing UI

Currently, I am developing a Qt class that needs to be integrated in a C++ Visual Studio project. Qt project - Qt Widgets Application. Build on Qt Creator 3.2.1 (opensource), based on Qt 5.3.2. Using Visual Studio 2013 Professional, the Qt…
Alexandru Vasiliu
  • 534
  • 1
  • 4
  • 18
3
votes
1 answer

QQuickView content not resizing properly

I am trying to embed a QMLview inside a QWidget. I managed to display the view inside the mainwindow without any problem, but whenever i am resizing it, the qml view is not updated. View not resizing properly Here is the code which draws that…
kabinja
  • 135
  • 2
  • 10
3
votes
1 answer

What is difference between QQuickView and QQuickItem?

I am suppose to inherit QQuickItem instead of QQuickView to write interface in C++ using QQuick class. From the explanation provided in Qt documents I understood QQuickView loads qml. QQuickView is used to integrate a displayable QML object into an…
Tejaswini
  • 29
  • 5
2
votes
1 answer

Use QQuickView or QQmlApplicationEngine to switch between pages from ApplicationWindow

I'd like to use an ApplicationWindow as a main file and be able to switch to other QML files from C++ with QQuickView::setSource(const QUrl & url). Basically it would do this: start-up => loads main.qml (ApplicationWindow) => click on help button =>…
Grégoire Borel
  • 1,880
  • 3
  • 33
  • 55
2
votes
1 answer

Memory management issue with deleting QQuickView in Qt5.3(mingw32)

We are developing an application with Qt/Qml (Qml is embedded in the QWidget). When deleting a QWidget that contains a QQuickView (embedded), the allocated memory won't be freed entirely. By adding a QWidget to application, about 30MB of memory…
Mosi
  • 1,178
  • 2
  • 12
  • 30
1
vote
1 answer

Is there any way to embed a QWidget inside a QQmlApplicationEngine or QQuickView?

I found a way to embed a QWidget in a QML, by using QQuickWidget render (anchoring, the QWidget with the QQuickWidget position), but I am trying to do the same using QQuickView/QmlApplicationEngine, which uses a different rendering system, and the…
laurapons
  • 971
  • 13
  • 32
1
vote
1 answer

How to add QML map to QGraphicscene?

The app have QGraphicscene(mpscene) with QGraphicsView(mpGraphicsView) i am trying to add qml map object to QGraphicscene(mpscene) But map view come separately like popup window. How can i add this map to QGraphicscene(mpscene)? Following are the…
Sagar A W
  • 338
  • 1
  • 12
1
vote
1 answer

Qt: layouts with a Qwidget window container

I have an application that displays a QML map inside a QWidget. The Qwidget forms part of a Horizontal layout with splitter in order to allow the map to take up most of the space. My UI structure look like the image below. The wdgtMap is the one…
Mikkie
  • 103
  • 2
  • 11
1
vote
1 answer

loading file url from documentDirectory to table view

I've been trying to load the file in document directory to show on the uitableview and read them using quickview var fileURLs: [NSURL] = [] every time I run the apps it error on this line as "index out of range" on fileURLs[indexPath.row] func…
JameS
  • 231
  • 1
  • 2
  • 11
1
vote
1 answer

qsTr does not work in QQuickView

I use QQuickView to show qml interface in widget application m_window = new QQuickView(); m_container = QWidget::createWindowContainer(m_window,hostWidget,Qt::FramelessWindowHint); m_container->setFocusPolicy(Qt::TabFocus); …
1
2 3