Qt Creator Menus and tooltips don't display when headless
-
64 bit bookworm, installed today using raspberry pi imager. For rpi4
Everything works fine if something is plugged into the HDMI connector at boot time (even when using a vnc client instead of a connected keyboard and mouse).
If booted without something plugged into the HDMI connector, nothing happens when you click on the Menubar items.
The problem isn't specific to qtcreator. I first saw the problem on my Qt application (with a QMainWindow) that's been running fine with qt5 for years. I initially blamed it on my cross-compilation of qt, but now that I see the repo qt6 shows the same problem on a new image, I think there's an issue in at least one 6.2 qt library.
HDMI_force_hotplug=1 doesn't help.
Not sure where the best place to post this problem, but since qtcreator is broken I thought I'd try here.
-
@davethomaspilot I found a post that said the latest version of bookworm doesn't use config.txt, at least not for hdmi_force_hotplug . It suggested using cmdline.txt instead and using:
video=HDMI-A-1:1920x1080M@60D
at the beginning of the cmdline.txt line.
This fixes the issue!
Apparently, without this change (regardless of what's in config.txt), display resolution is something that's incompatible with qt6 Qmenubar (and tool tips).
Anyway, now that I have a workaround, I'm "outta here". But, this will probably will catch others that have depended on config.txt for headless operation.