QML ComboBox crashes on embedded System

436 views Asked by At

I added a ComoboBox in my program to my qml. This runs fine on desktop (both Ubuntu and Win7). As soon as I deploy my program on my embedded linux machine (sabrelight with yocto) it crashes as soon as I try to open the list of items from the ComboBox.

Anyone encountered a similar behaviour? Any idea why that happens?

1

There are 1 answers

0
jpnurmi On BEST ANSWER

It happens because ComboBox from Qt Quick Controls 1 creates a top-level window for the popup. Creating multiple top-level windows is not supported on EGLFS on Embedded Linux.

You may want to give it a try with Qt Quick Controls 2 introduced in Qt 5.7. It is embedded and mobile friendly by providing item-based popups and an order of magnitude better performance.

You can read more about the history here. In particular, this post highlights the fundamental structural changes in Qt Quick Controls 2.