0
votes

When I create a new QToolBox in Qt designer under Mac or Linux i see the following aspect (tabbed): tabbed aspect but in the same Qt project under Windows The QToolBox appears like this (boxed): boxed aspect

How can I change the aspect of (boxed) to (tabbed) ?

1

1 Answers

0
votes

OK, I found how to:

In C++ code, reference the widget with findChild then, then use setStyle with QStyleFactory to set the right aspect:

#include <QStyleFactory>
...
QToolBox *mytoolbox = findChild("toolBox");
mytoolbox->setStyle(QStyleFactory::create("Fusion"));

this worked for me.