when I run the qt examples by: ./xx
returns :"Running on a compositor with no screens is not supported", what should I do?
Probably, you do not have any display assigned. Can you please try using the below Linux command and test again?
$ export DISPLAY=:0
It is ok now