Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.7 OSX macdeployqt problems with QtWebEngine via Qml
Forum Updated to NodeBB v4.3 + New Features

Qt 5.7 OSX macdeployqt problems with QtWebEngine via Qml

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 303 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.
  • V Offline
    V Offline
    VRHans
    wrote on last edited by
    #1

    I can build my app perfectly fine via QtCreator, or the command line and it runs perfectly well.

    I build on Windows, Linux, and OSX.

    On Windows I can run the deployment tool and create a package that distributes to non-Qt machines and it works great.

    I haven't done deployment to linux yet (that's after OSX.)

    When I run the deployment tool on OSX, I get a weird result.

    The resulting app bundle runs, and many aspects of my Qml work fine, all resources present, UI is correct, just about everything works - UNTIL I click on a button that dynamically adds in a Web view (I'm using QtWebEngine) - and then CRASH - instantly.

    The crash happens in my code (C++) calling ::setParentItem when I'm attaching my new Qml Component (containing a WebView as a child) - if I run this bundle from QtCreator I can see an error message from Qt claiming (right after the setParentItem call) that the 'qml object is not ready.' Now, both QtComponents, the component the object is being added to, and the component being added report their status as ready.

    Again, this works perfectly fine before I package it for deployment. All the rest of my application code works fine (and also does this exact same type of 'create component and then attach component' in exactly the same way.)

    Does this ring a bell with anyone?

    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