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. QQuickView + QQmlApplicationEngine error
QtWS25 Last Chance

QQuickView + QQmlApplicationEngine error

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 895 Views
  • 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.
  • B Offline
    B Offline
    bronstein87
    wrote on last edited by bronstein87
    #1

    I'm trying to open qml app using QQmlApplicationEngine and QQuickView:

        engine.reset(new QQmlApplicationEngine);
        engine->load(QUrl(QStringLiteral("qrc:/main.qml")));
        QQuickView *view = new QQuickView(engine.data(),0);
        view->show();
    

    But it gives me something strange in QQuickView:
    alt text

    What i'm doing wrong?
    OS : win7 32 , Qt version : 5.7

    1 Reply Last reply
    0
    • GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      What is engine ?

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bronstein87
        wrote on last edited by bronstein87
        #3
        QScopedPointer<QQmlApplicationEngine>
        
        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