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. QtQuick3D RuntimeLoader with windeployqt
Forum Updated to NodeBB v4.3 + New Features

QtQuick3D RuntimeLoader with windeployqt

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 145 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.
  • P Offline
    P Offline
    primitiveDataType
    wrote on last edited by
    #1

    Hello,

    Im having aproblem with the RuntimeLoader from QtQuick3D.

    Im trying to load a GLTF file while the programm is running, which works as long as I do not deploy the Programm with windeployqt
    This is my RuntimeLoader code:

            RuntimeLoader {
                id: importNode
                scale: Qt.vector3d(helper.scaleFactor, helper.scaleFactor, helper.scaleFactor)
                source: importUrl
                onBoundsChanged: helper.updateBounds(bounds)
            }
    

    FileDialog:

        FileDialog {
            id: fileDialog
            nameFilters: ["glTF files (*.gltf *.glb)", "All files (*)"]
            onAccepted: {
                console.log(file)
                importUrl = file
                openJsonFile(file)
            }
            Settings {
                id: fileDialogSettings
                category: "QtQuick3D.Examples.RuntimeLoader"
                property alias folder: fileDialog.folder
            }
        }
    

    As soon as I select the file from a dialog it opens without any problem.
    But after deploying it I get assertion errors and the programm exists without any message
    f2fc58c2-dc70-4c5a-985d-1e226ebcf6da-grafik.png

    Removing just the RuntimeLoader fixes the problem but that isnt realy an option, since the whole point is to render the gltf

    Any idea waht I am doing wrong?
    Thanks

    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