标题:qt5 多屏显示
作者:yuxue
日期:2016-06-03 22:54
内容:
qt5 取消 qws 之后 如何实现 双屏显示呢 qt4 配置
export QWS_DISPLAY="Multi: LinuxFB:fb=/dev/fb0 LinuxFb:fb=/dev/fb2"
就可以了
我移植好了qt5 EGLFS 显示 只能 fb0 显示 无法fb1 显示
有没有接触过的 优酷上有个 搞成功了不知道怎么弄的
http://v.youku.com/v_show/id_XMTMwMTk2NTM2NA==.html
在网站上也看到这个
i.MX6 support in Qt 5.2 and up
Make sure to configure with -device imx6 (which is the same as -device linux-imx6-g+). Without this the build may still succeed but eglfs will not be functional due to not having the Vivante-specific hooks compiled in from qtbase/mkspecs/devices/linux-imx6-g+.
Both linuxfb and eglfs should work. Note however that in 5.2.0 linuxfb is broken. This is corrected in 5.2.1.
Multiple screens
When having multiple displays connected (e.g. the touch LCD panel and HDMI), there are two framebuffer devices: /dev/fb0 and /dev/fb2. Note that fb1 and fb3 are overlays for fb0 and fb2 and are not useful for our purposes here.
Both eglfs and linuxfb uses /dev/fb0 by default. To change this, linuxfb can be configued with the 'fb' parameter: just launch the application with "-platform linuxfb:fb=/dev/fb2".
eglfs has no way to configure this before 5.3.0 so apps using eglfs will always show up on the display belonging to fb0. In 5.3.0 a new environment variable is introduced: QT_QPA_EGLFS_FB. Setting this to /dev/fb2 before launching the app will make the EGL/GLES content show up o ..
#1 [yuyu414 08-05 10:17]
楼主有找到办法吗,我从qt4换到qt5也无法实现嵌入式多屏了
#2 回 yuyu414 的帖子 [大漠之鹰 05-14 17:21]
yuyu414:楼主有找到办法吗,我从qt4换到qt5也无法实现嵌入式多屏了 (2019-08-05 10:17)
有办法了吗?我现在也面临同样的问题,目前有一种思路有待验证,需要重写eglfs后端
#3 [笑颜 05-14 17:36]
可以重新实现一个qt的后端。操作多个fb的也是可行的,我之前实现过。
#4 回 笑颜 的帖子 [yuyu414 05-14 18:00]
笑颜:可以重新实现一个qt的后端。操作多个fb的也是可行的,我之前实现过。
(2020-05-14 17:36)
多进程?
#5 回 大漠之鹰 的帖子 [yuyu414 05-14 18:00]
大漠之鹰:有办法了吗?我现在也面临同样的问题,目前有一种思路有待验证,需要重写eglfs后端 (2020-05-14 17:21)
莫得办法,用qt4了