From 550c0dc8dec2e38414c881615399909fbbb04483 Mon Sep 17 00:00:00 2001 From: jensenpat Date: Thu, 16 Jul 2026 08:26:40 -0700 Subject: [PATCH] Fix RX font scope at startup. Principle XI. --- src/gui/RxApplet.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/RxApplet.cpp b/src/gui/RxApplet.cpp index 68b894285..ba4225ade 100644 --- a/src/gui/RxApplet.cpp +++ b/src/gui/RxApplet.cpp @@ -569,7 +569,11 @@ void RxApplet::buildUI() }); m_freqRow->addWidget(m_modeCombo); - m_freqStack = new QStackedWidget; + // Parent the stack explicitly before registering scoped styles. Qt + // does not reparent widgets in nested layouts until layout activation, + // so an unparented stack makes its children resolve root theme tokens + // at startup and miss the applet/rx scope (#4159). + m_freqStack = new QStackedWidget(this); m_freqStack->setFixedHeight(34); m_freqLabel = new QLabel("0.000.000");