View Full Version : QLabel onto QTabWidget with Designer[Resolved it]
ksqt
23rd February 2008, 18:24
For some reasons I am unable to put a QLabel on a QTabWidget using Designer. I mean I can literal 'put' it there, and shows in preview, but does not show after runnning program. All other widgets show, though.
Is there something I may have missed? Or only possible to do this coding by hand and not with Designer?
marcel
23rd February 2008, 18:35
Add a layout to the tab widget page after you put the label. And perhaps some spacers, depending on where you want it positioned.
ksqt
23rd February 2008, 18:42
It is already in a layout. It is alongside a spin box, and is only one word.
I cannot see any label I put, no matter where onto the tabwidget. Visible in preview, though.
jpn
23rd February 2008, 18:45
I cannot see any label I put, no matter where onto the tabwidget. Visible in preview, though.
Do you by any chance set application-wide style sheet, palette or something like that?
ksqt
23rd February 2008, 18:48
AAAhhh....Thanks...
I had this
ui.dockWidget->setBackgroundRole(QPalette::Dark);
and commented it out, and works now. Thanks very much for the hint. Appreciated.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.