How to set full display for QT project?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set full display for QT project?

Jump to solution
6,876 Views
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

Tags (2)
1 Solution
6,533 Views
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

View solution in original post

0 Kudos
Reply
6 Replies
6,533 Views
karangajjar
Senior Contributor II

Hi downey downey ,

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

Regards,

Karan Gajjar

0 Kudos
Reply
6,533 Views
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 Kudos
Reply
6,533 Views
karangajjar
Senior Contributor II

Hi downey downey,

Did you use wayland or xcb as your QT_QPA_PLATFORM?

Regards,

Karan Gajjar

0 Kudos
Reply
6,533 Views
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 Kudos
Reply
6,534 Views
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 Kudos
Reply
6,533 Views
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