[Qt-interest] How to Make a TabWidget a `CentralWidget' ?

Luis Lezcano Airaldi luislezcair at gmail.com
Tue Apr 6 16:41:05 CEST 2010


2010/4/6 Aaron Lewis <aaron.lewis1989 at gmail.com>:
> Thanks Diego,i should've be more specific.
>
> Before i want to try with TabWidget , i use a `mainLayout' as layout
> (QHBox , QVBOX , etc.) ,  and morph it into a QWidget.
>
> In construct function:
>
> mainw::mainw(QWidget *parent) :
>    QMainWindow(parent),
>    ui(new Ui::pangolin)
> {
>    ui->setupUi(this);
>    setCentralWidget(ui->tabWidget);
> }
>
> That's all my Code , not working this time.

Why is it not working? Do you get any compiler errors/warnings or
execution time messages?




More information about the Qt-interest-old mailing list