Ubuntu 20.04, XServer and Qt applicatons with QOpenGLWidget

Hello!

Hardware: ITX-3588J and two monitors

Software:
Ubuntu 20.04.4 LTS (GNU/Linux 5.10.66 aarch64)
Qt version 5.12.8 installed on ITX-3588J by: sudo apt-get install build-essential qt5-default
X.Org X Server 1.20.8

When we trying to run a qt application with QOpenGLWidget on two monitors (the window has a size 3840x1080), there were problems.

First scenario (Used eglfs):

sudo killall -3 gnome-shell
export QT_QPA_PLATFORM=eglfs
export QT_QPA_EGLFS_INTEGRATION=eglfs_kms
export QT_QPA_EGLFS_KMS_ATOMIC=1
export QT_QPA_EGLFS_KMS_CONFIG=/home/firefly/kms_config.json
./ZeroCopyGLSample

kms_config.json are:

{
  "device": "/dev/dri/card0",
  "outputs": [
    {
      "name": "HDMI1",
      "mode": "1920x1080"
    },
    {
      "name": "HDMI2",
      "mode": "1920x1080"
    }
  ]
}

Everything starts and works well, except that the application can only use one monitor, although qApp→screens() correctly returns both devices. Attempts to create widgets with the geometry of the second monitor did not give the expected result.

Second scenario (Used Xserver):

xinit /home/firefly/testapps/OpenGL/ZeroCopyGLSample/ZeroCopyGLSample

The application starts, a window is created on two monitors, but OpenGL does not work correctly:

QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QOpenGLWidget: Failed to create context

I would be grateful for any hint
Thanks for the help!

I am so grateful for your share, the article is amazing! Free Exam Data-Driven-Decision-Making pass guide resources are now available—good luck!

Truly an impressive article, I’m grateful for your sharing. The C11 braindump pdf test helped me secure my promotion and raise—grab it for free today!

Sind Sie neugierig, warum so viele Menschen die schwierige Microsoft DP-900-Deutsch Prüfung bestehen können? Ich können Sie beantworten. Der Kunstgriff ist, dass Sie haben die Prüfungsunterlagen der Microsoft DP-900-Deutsch von unsere Pass4Test benutzt. Wir bieten Ihnen: reichliche Prüfungsaufgaben, professionelle Untersuchung und einjährige kostenlose Aktualisierung nach dem Kauf. Mit Hilfe der Microsoft DP-900-Deutsch Prüfungsunterlagen können Sie wirklich die Erhöhung Ihrer Fähigkeit empfinden. Sie können auch das echte Zertifikat der Microsoft DP-900-Deutsch erwerben!