What can I do for my QtWidget-Program's Window correctly positioned on the screen?
-
After a long time, the problem remains unsolved.
-
@foghere2023 said in What can I do for my QtWidget-Program's Window correctly positioned on the screen?:
After a long time, the problem remains unsolved.
I don't think it's the correct place here when you want wayland improvements.
-
It's a pity that qwidget can't adapt to the new changes brought by wayland.
-
Maybe a workaround?
QMessageBox mMessageBox; int x = this->x(); int y = this->y(); mMessageBox.setGeometry(x,y,300,100);
-
thank you , but it doesn't work,the Dialog cannot move itself to by 'move' func ,somebody says that wayland not provide coordinate data
-
someone tell me :『Wayland does not support manual positioning』
-
int x = this->geometry().x(); int y = this->geometry().y(); qDebug() << "Window position: (" << x << ", " << y << ")";
the 「window position」is (0,0) forever
-
@foghere2023 Yes thank you! I apologize. I should have checked better.
-
now,just use xcb like this for wayland user『QT_QPA_PLATFORM=xcb ./testApp』
-
@foghere2023
thanks for the tip , mid 2024 and the issue is still here with wayland