diff --git a/src/plugins/texteditor/outlinefactory.cpp b/src/plugins/texteditor/outlinefactory.cpp index 421c31f4407..f280458ce6f 100644 --- a/src/plugins/texteditor/outlinefactory.cpp +++ b/src/plugins/texteditor/outlinefactory.cpp @@ -17,6 +17,11 @@ OutlineWidgetStack::OutlineWidgetStack(OutlineFactory *factory) : { QLabel *label = new QLabel(tr("No outline available"), this); label->setAlignment(Qt::AlignCenter); + + // set background to be white + label->setAutoFillBackground(true); + label->setBackgroundRole(QPalette::Base); + addWidget(label); m_toggleSync = new QToolButton;