Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QDialog in Wayland works incomplete
Forum Updated to NodeBB v4.3 + New Features

QDialog in Wayland works incomplete

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 547 Views
  • 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.
  • S Offline
    S Offline
    Shao
    wrote on last edited by
    #1

    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.

    1. 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.
    2. The modal dialog can work. The parent is blocked. But there is no darkness effect on parent widget.
    1 Reply Last reply
    0
    • foghere2023F foghere2023 referenced this topic on

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved