QDialog in Wayland works incomplete
Unsolved
Mobile and Embedded
-
Hi, community
I deploy Qt application to embedded Linux, imx8m mini, based on Yocto Linux and Wayland desktop.Here is an example code to show the Qdialog.
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); d = new QDialog(this, Qt::FramlessWindowHint | Qt::WindowStaysOnTopHint); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_pushButton_clicked() { d->exec(); }
The QDialog works perfectly on x86 host PC, but my embedded Linux works incomplete.
- The QDialog default position should locate at centered on top of the parent's top-level widget.
But QDialog in Wayland shows on a random position. Even I try to use "move" to assign a specific position, it doesn't work. - The modal dialog can work. The parent is blocked. But there is no darkness effect on parent widget.
- The QDialog default position should locate at centered on top of the parent's top-level widget.
-
F foghere2023 referenced this topic on