Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Using qtqucik and qml in a qt widget based ui
Forum Updated to NodeBB v4.3 + New Features

Using qtqucik and qml in a qt widget based ui

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.0k 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.
  • K Offline
    K Offline
    koolbi
    wrote on last edited by
    #1

    I had a qt android application that currently uses a widget ui and want to use qtquick to use qml to make a new ui. To do this I used the following code
    @ QQuickView *view = new QQuickView();
    QWidget *container = QWidget::createWindowContainer(view, this);
    container->setMinimumSize(200, 200);
    container->setMaximumSize(200, 200);
    container->setFocusPolicy(Qt::TabFocus);
    view->setSource(QUrl("/path/to/qmlfile/main.qml"));
    QLayout *layout = this->layout();
    layout->addWidget(container);@
    I keep getting a segmentation fault because of this code later on in my program.
    I get this error "E/libEGL ( 8107): eglMakeCurrent:534 error 3002 (EGL_BAD_ACCESS)" and then it crashes with the segfault.

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      It looks like createWindowContainer() is currently not supported on Android. See the last comment at http://www.ics.com/blog/combining-qt-widgets-and-qml-qwidgetcreatewindowcontainer

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koolbi
        wrote on last edited by
        #3

        @JKSH Thank you for the reply!

        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