This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to position apps inside weston compositor

Dear sir,

I am working with TI AM57x EVM and use QT to develop my application.

My application run on wayland after weston-lauch.

But I cannot position my app on any display either HDMI or LCD.

In traditional QT program I can use QWidget::GetWindowHandle::SetScreen(QApplication::QDesktop::Screens[first]) to assign QWidget for multi-screens system.

And I can use QWidget::Geometry to assign position on screen.

But when run on wayland, the qwidget appear random and unable to control.

Does anyone point me how to ?

  • Hi Sir,

    When I tested example/qwindow-compositor inside QtWayland under processors-sdk-v02.00.01, I got error message
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    Maybe another compositor is running.
    Fatal : failed to open server socket.
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    So when I use the new demo program under processors-sdk-v02.00.01 : qt-opencv-opencl-opengl-multithreaded-1.3.3
    and put setGeometry into demo code, the windows still popu randomly.

    QRect geom = QRect(screenGeometry.width() / 4, screenGeometry.height() / 4, screenGeometry.width() / 2, screenGeometry.height() / 2);
    mainwin.setGeometry(geom);
  • Can you stop weston and check with QtWayland compositor?