Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Running with -platform eglfs does not clear up the screen upon application exit
I am current running Qt 5.2.1 cross-compiled for TI AM335x board (Starter Kit).
I run my application eglfs platform passing -platform eglfs on the command line.
If I close (both kill the process of nicely close the application) then screen is not cleared and the last form of my application remain on screen... Why? Is it possible to clear the screen upon application exit?
agocs last edited by
There's not much you can do when forcibly killing the app but nothing prevents you from doing a glClear and a swap when closing gracefully.
It was long time I asked so... but meanwhile I've been involved in several other projects/problems... now I am back on touch on this issue...
@agocs: how can I perform a glClear from my code? I simply use eglfs as platform but at my level I have no visibility over all the GL-related stuff... how can I perform an explicit glClear?
agocs last edited by
I was thinking of something like
Thanks agocs: I am just trying the approach you suggested but I still have some problems... The compiler says me:
bq. xxx.cpp:271:22: error: 'class QOpenGLFunctions' has no member named 'glClear'
I double-checked the Qt 5.3 documentation "here":http://qt-project.org/doc/qt-5/qopenglfunctions.html and it seems that
glClearshoud be there... but it is not... even looking at the header file included with
glClearisn't there at all...
Am I missing something?
Anyway I've tried to directly call
ctx.functions()->glClear(GL_COLOR_BUFFER_BIT)(I do not know if it correct) but the screen isn't cleared...
aV_V last edited by aV_V
I'm having same issue. Which is the proper way to solve this?
@Morix-Dev glClear() has a parameter. How do you call it? Which Qt version do you use?
Tirupathi Korla last edited by Tirupathi Korla
You can use it in aboutToQuit function which will be called before application quits.
will there be any console kind of thing on the screen before application is launched?