ui/virtualconsole: fix background colour issues#1993
Conversation
|
Hi @jpue thanks for this. 3 cases:
I have alreasy spent some time before your patch and decided to release 4.14.5 on Qt 6.9.x until a fix is found |
|
Ok, fine. I am still wondering whether this is an issue that could even be fixed in the QLC+ source code, or rather a change/regression in the Qt library. It is up to you, of course, if we keep this open as a reminder of an ongoing issue or close it, since it does not actually the problem. As you mentioned QLC+ 4.14.4 being released with Qt 6.9.x: Unfortunately, I have not had a chance to test QLC+ 4.14.4 (it was just released before a larger show I did), but I remember there were audio issues on Windows with Qt 6.8.2 and higher. |
|
The v5 video tutorials are made on Windows and the last one I did about audio/video was all fine with Qt 6.10. |


Reported at https://www.qlcplus.org/forum/viewtopic.php?t=19491, fixes #1986
Describe the bug / To Reproduce
QLC+ 4.14.4 unintentionally introduced breaking changes to the background colour/background image of the
Virtual Console(see forum or linked issue for details).Expected behaviour
The existing functionality of QLC+ 4.14.3 and earlier versions should not be changed (see forum or linked issue for details).
Problem Analysis
Since there have been no changes to the relevant parts of the QLC+ source code, the breaking changes are likely located in the Qt framework.
The following versions/platforms seem to be affected:
masterbranch build on Ubuntu 25.04 (Qt 6.8.3), 25.10 (Qt 6.9.2) and 26.04 beta (Qt 6.10.2)The following versions/platforms do NOT seem to be affected:
masterbranch build on Ubuntu 22.04 (Qt 5.15.3)Proposed Solutions
As described in this Qt example, the autoFillBackground property of
QWidgetseems to be important for a solid background colour to be drawn.Although the constructor of
VCWidgetalso sets this to the correct value (true), this property is reset tofalsefor the VC mainVCFramecalledm_contentsat some point after initialisation.To be honest, I could not find the exact cause of this, but re-setting it to
truewhen a new colour or image is set, as well as setting this property for the parent widget (m_scrollArea) when it is created (source for this idea), fixes the issues and restores the previous behaviour.For (Linux) Qt5 builds (which were not affected anyway), this changes nothing.
Please note that I only developed this on Linux, so it still needs to be tested on Windows and macOS builds.
When this PR is merged, the Qt version of Linux v4 builds in the GitHub Actions can be bumped to
6.10.2again to match the other platforms.