How to set full display for QT project?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to set full display for QT project?

跳至解决方案
9,329 次查看
linux_downey
Contributor III

Hi

   I'm developing a application with QT5, on my development PC(X86,ubuntu 18.04), The QT application runs OK, it can display for full-screen with the QT API: showFullScreen()

   But, after I run  the same project on imx8mq-evk, which is the same source code,compiled by cross-compile-tool-chain, It can not display full screen, there always a system title bar which locates on top of screen( Please refer to the picture with attachment).

   The evironment is below:

         platform : imx8mq-evk

         instructions: export GRAPHICS=wayland-egl

                             ./exe  -platform ${GRAPHICS} -plugin evdevtouch:/dev/input/event1  

I'm sure that it runs ok on my ubuntu, So I think that my QT project is OK.

Could you please tell me how to hide the system bar?

 Best regards

downey

标记 (2)
1 解答
8,986 次查看
karangajjar
Senior Contributor II

Hi downey downey,

This seems to be related to Qt.

Please refer to the below thread for more reference:
[QTBUG-68554] QPA wayland-egl: Window full-screen operation stop working - Qt Bug Tracker 

Regards,

Karan Gajjar

在原帖中查看解决方案

0 项奖励
回复
6 回复数
8,986 次查看
karangajjar
Senior Contributor II

Hi downey downey ,

Can you let us know which yocto image are you building? 

Regards,

Karan Gajjar

0 项奖励
回复
8,986 次查看
linux_downey
Contributor III

sorry for providing uncompleted information.
This is image name:

         fsl-image-qt5-validation-imx-imx8mqevk-20190923102914.rootfs.sdcard

MACHINE = 'imx8mqevk'
DISTRO = 'fsl-imx-wayland'

Looking forward to your replay again.

0 项奖励
回复
8,986 次查看
karangajjar
Senior Contributor II

Hi downey downey,

Did you use wayland or xcb as your QT_QPA_PLATFORM?

Regards,

Karan Gajjar

0 项奖励
回复
8,986 次查看
linux_downey
Contributor III

Hi karan gajjar,

Actually I don't understand what does "use wayland or xcb as your QT_QPA_PLATFORM" mean.

In QT development I only used some standard widgets and a few repaint events, not the other extensions of QT, and the compiled executable was executed with instruction:

            ./exe  -platform wayland-egl  -plugin evdevtouch:/dev/input/event1  

For display I use  QGraphicsView *view  frame,and call  view->showFullScreen()  to display the whole UI part.  

As you can see above, It works good on ubuntu18.04, but can not display full screen on i.mx8 evk.  

Regrads 

downey.

0 项奖励
回复
8,987 次查看
karangajjar
Senior Contributor II

Hi downey downey,

This seems to be related to Qt.

Please refer to the below thread for more reference:
[QTBUG-68554] QPA wayland-egl: Window full-screen operation stop working - Qt Bug Tracker 

Regards,

Karan Gajjar

0 项奖励
回复
8,986 次查看
linux_downey
Contributor III

Hi igorpadykov:

   It does works with instructions below:

         export QT_WAYLAND_SHELL_INTEGRATION=wl-shell

         ./exe  -platform wayland-egl  -plugin evdevtouch:/dev/input/event1  

   Sooooooo appreciate for your nice advice.

   

Best regards

downey