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. QtCreator Crash after open Designer
Qt 6.11 is out! See what's new in the release blog

QtCreator Crash after open Designer

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 1.1k 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.
  • M Offline
    M Offline
    milad2014
    wrote on last edited by
    #1

    hello guys!
    i updated Qt 5.15.1 to 6.4.1 (GCC 10.3.1) and The host in Ubuntu on virtual Machine VMwarePro 17
    so... every thing seems ok until when i wanna to use ListElement under ListModel componnet
    i run qt with terminal and i created a simple qtquick project As below :

    import QtQuick
    
    Window{
        width: 600
        height: 400
        ListModel {
            ListElement {
                name: "Apple"
                cost: 2.45
            }
        }
    }
    
    

    and when i clicked on Design mode button(Ctrl+4) ,Qt Creator will be crash and close and i got this messages in terminal for debug:
    $./qtcreator

    addOverrideAction /Switch to <b>Welcome</b> mode: Action /Switch to <b>Welcome</b> mode is already registered for context Global Context.
    Info: creating stash file /home/milad/build-TestDesigner-Desktop_Qt_6_4_1_GCC_64bit-Debug/.qmake.stash
    file:///home/milad/Qt/Tools/QtCreator/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/MenuItem.qml:68:9: TypeError: Cannot read property 'width' of null
    file:///home/milad/Qt/Tools/QtCreator/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBundleContextMenu.qml:69: TypeError: Cannot read property 'bundleMaterialImported' of null
    Segmentation fault (core dumped)
    

    after that i tried so many ways for fix it , but didn't work
    i did reinstalled the ubuntu22.04, qt 6.0.0 , qt 6.2 , qt 6.4 ... and so on...
    i installed qt5 and qt6 dependencies
    i updated everything that imagine
    NOTHING HAPPENDED and still i have the same problem with designer on listelement
    but when i remove the ListElement like below:

    import QtQuick
    
    Window{
        width: 600
        height: 400
        ListModel {
        }
    }
    
    

    and when i click on design button on QtCreator everything work fine again!!!!! why?!
    for be sure i edited this file:
    file:///home/milad/Qt/Tools/QtCreator/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBundleContextMenu.qml:69: TypeError: Cannot read property 'bundleMaterialImported' of null
    and changed the bundleMaterialImported from null to 0 , error message disappeared but i have the same problem and the qt crash and exit immediately after open design menu
    i need HELP guys i am broken right now and i haven't any idea for fixing that!
    QT company please dont update the version When having bugs.
    sorry for bad english too guys!

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jofernito
      wrote on last edited by
      #2

      I have the same problem in windows 10 with QTCreator 9.0.1 and QT 6.2.4 LTS.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Giox79
        wrote on last edited by
        #3

        Same issue, updating to QtCreator 9.0.1 generate this kind of issue as soon as defining a ListElement.
        Any help will be appreciated.

        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