I'm having a problem with Designer and the Designer plugin to Visual Studio.
I'm trying to replace the central Widget on a (a QWidget) docking QMainWindow with a QTabWidget. It's easy in code but is there any way to do this in Designer?
Thanks,
Max
I'm having a problem with Designer and the Designer plugin to Visual Studio.
I'm trying to replace the central Widget on a (a QWidget) docking QMainWindow with a QTabWidget. It's easy in code but is there any way to do this in Designer?
Thanks,
Max
Do you mean setting QTabWidget as central widget? It's not possible from Designer. A main window project always has a plain QWidget as central widget. However, it's fairly possible by editing the .ui file by hand. Simply remove the "centralWidget" element which wraps the tab widget.
J-P Nurmi
Or, if you want to do everything in Designer, you can just use the QWidget and make the QTabWidget stretch all over it. You'll never notice the difference.
"The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry
Bookmarks