UI not coming up with the usage of the component " MessageDialog"
-
Hi,
I am using Qt 5.15 to develop an UI( QML application) for an embedded device with Yocto Linux.
The UI doesn't not show up with the usage of "MessageDialog" component. Tried with importing Qt.Quick.dialogs 1.1/1.2/1.3.
No error related to component or the library is being shown in the logs.Configuration:
OS - Yocto Linux Kirkstone 4.0
Architecture - ARM architecture
QT - 5.15 - Custom build of QT for the device.
Application - QML applicationPlease find the code used below:
import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 import QtQuick.Dialogs 1.3 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Button{ id: button1 anchors.centerIn: parent width: 100 height: 200 onClicked:{ msg1.open() } } MessageDialog{ id:msg1 title: "Message" text: "Button is clicked !! " standardButtons:StandardButton.Ok } }
Note: When I ran the same QML application on my laptop with Ubuntu 22_04 and having QT 5.15 version installed, it works perfectly fine(UI comes up and Messagedialog is displayed properly without any issues)
Can anyone please help explain what could be possible cause for this kind of behavior on the embedded device.
Thanks in advance!