Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QQuickItem on top of QQuickView
Forum Updated to NodeBB v4.3 + New Features

QQuickItem on top of QQuickView

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 742 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LORDIF
    wrote on last edited by
    #1

    I have a QQuickView which renders every 16 msec.

    @int main(int argc, char *argv[])
    {
    QGuiApplication a(argc, argv);

    QQuickView *view = new Window;
    
    view->setMinimumSize(QSize(800,600));
    view->setResizeMode(QQuickView::SizeRootObjectToView);
    
    view->setSource(QUrl("qrc:/qml/main.qml"));
    view->show();
    
    return a.exec();
    

    }@

    Because of that my QML UI is not visible.

    @import QtQuick 2.3

    Rectangle {
    id: root
    Text {
    anchors.fill: parent
    id: text1
    color: "#b40202"
    text: qsTr("Loading...")
    font.bold: true
    font.pixelSize: 24
    }
    }@

    "Screenshot":http://postimg.org/image/t3q0w2fat/

    How can I draw QML UI on top of the QQuickView?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Torgeir
      wrote on last edited by
      #2

      From the screenshot it looks like you are also doing some OpenGL rendering (the triangle)?

      Does it look correct if you don't do any OpenGL calls?
      If so, maybe you are not restoring the OpenGL state after rendering?

      Have a look at QQuickWindow::resetOpenGLState()

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved