Qt Embedded in eglfs (linux) on different windows
Hi all
I work on project in qt embedded on linux - arm board.
I use eglfs plugin (instead of x11) - write the screen directly to the frame buffer.
I understand that I can't use multiple windows in my application. just one main window. is it true?
Is there any way that I can use multiple windows? This is pretty annoying because I need to handle many views in one stackedwidget.
Need your support on this and what is the best practice.
Nati
Re: Qt Embedded in eglfs (linux) on different windows
Quote:
Originally Posted by
natile
Hi all
I work on project in qt embedded on linux - arm board.
I use eglfs plugin (instead of x11) - write the screen directly to the frame buffer.
I understand that I can't use multiple windows in my application. just one main window. is it true?
eglfs talks to the system's framebuffer, which does not have support for windows.
You need a windowing system to do that, e.g. X11 or Wayland.
Not Qt specific of course, that is a system setup thing.
Quote:
Originally Posted by
natile
This is pretty annoying because I need to handle many views in one stackedwidget.
Not sure what that has to do with multiple windows. A QStackedWidget is never multiple windows, it is one widget showing one of many pages.
Cheers,
_
Re: Qt Embedded in eglfs (linux) on different windows
Just explain myself:
When I say "very annoying" I mean to work all the time with the stackwidget. Sometimes I need that the app open a new confirmation window like a window/div/rect/whatever . I need this to be opened on the mainwindow
and i find it very painfull.
The switching between pages inside the stackwidget control is annoying too.
Another example : I want to develop a virtual keyboard and i can't develop that in different window. what options do i have? i dont want to develop it in every page that contain the keyboard. what the re-use best practice for this situation?
Re: Qt Embedded in eglfs (linux) on different windows
Ah, I see, you meant that you are currently using a stacked widget as a workaround for not having windows.
As far as I can see you have two options:
1) implement your own "windowing system" inside your application
2) use an existing windowing system and the appropriate QPA for Qt
Cheers,
_