From 10:00 CET Friday 22nd November we will adjust how the server works to deal with some recently reported problems. Therefore there may be a load problem, if you experience more problems than usual trying to access the forum then please PM AndyS or any of the moderators so they can inform me.


QML Menu and EGLFS causes SIGABRT error



  • I'm working on an ARM device running QT 5.4.1 with EGLFS (without x-server).
    I have created a simple fullscreen application with QML and want to show a popup context menu if the user clicks on the screen.

    So i created a Menu, ...

    Menu {
        id: popupMenu
    
        MenuItem {
            text: qsTr("Change")
            shortcut: "Ctrl+C"
            onTriggered: {
                console.log("Change")
            }
        }
        MenuItem {
            text: qsTr("Default")
            shortcut: "Ctrl+D"
            onTriggered: {
                console.log("Default")
            }
        }
    }
    

    ...and a MouseArea with an onClicked handler

    onClicked: {
        console.log("clicked");
        popupMenu.popup();
    }
    

    If i now click with the mouse, the "clicked" text is printed to the console and then my application stops with an SIGABRT error and the message "EGLFS: OpenGL windows cannot be mixed with others."

    Why? How can i fix this? I mean it's just a simple stupid popup...