How to detect multi screen with eglfs?

Viewed 236
OS: Ubuntu 18
Qt: 5.15.1 GCC x64

I tried

qDebug()<<"screens"<<QGuiApplication::screens();

xcb which shows:

screens (QScreen(0x55ab206fba50, name="HDMI-0"), QScreen(0x55ab206fba90, name="DVI-D-0"))

but on eglfs which shows:

screens (QScreen(0x55c07f8308f0, name=""))

backend used eglfs_x11 cannot detect the second screen, so I tired eglfs_kms_egldevice, then the app even cannot enter the main function and give

Could not open DRM (NV) device

1 Answers
Related