Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > rocksolid.shared.linux > #113

QT_QPA_PLATFORM

From Anonymous@rocksolidbbs.com (Anonymous)
Newsgroups rocksolid.shared.linux
Subject QT_QPA_PLATFORM
Date 2023-04-30 08:15 +0000
Organization RetroBBS
Message-ID <9b8fd29985d2af0ac3a26a64eb4d913e@rocksolidbbs.com> (permalink)

Show all headers | View raw


I thought this was pretty cool when I found out about it. It turns out you can set this variable and run Qt programs using different Qt Platform Abstractions.

export QT_QPA_PLATFORM=vnc
some-qt-program

Now it will run as a VNC server, so you could run it headless for example and connect to it with any VNC client. There are other cool plugins such as linuxfb to run it without X on the Linux framebuffer.

See https://doc.qt.io/qt-6/qpa.html#qpa-plugins for available plugins.

-- 
Posted on RetroBBS

Back to rocksolid.shared.linux | Previous | Next | Find similar


Thread

QT_QPA_PLATFORM Anonymous@rocksolidbbs.com (Anonymous) - 2023-04-30 08:15 +0000

csiph-web