[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Newbie question about QTabWidget
From:       kleag () free ! fr
Date:       2006-06-06 16:01:08
Message-ID: 1149609668.4485a6c463a13 () imp5-g19 ! free ! fr
[Download RAW message or body]

Hello,


Selon chauchot.etienne@free.fr:
> QTabWidget *tabs = new QTabWidget(mainWin);
> QVBox *tab = new QVBox(tabs);
> QLabel *label = new QLabel("test", tab);
> tabs->addTab(tab, "page1");
> mainWin->show();
>
> The application is launching well, tab page "page1" appears but there is no
> label visible in page1 containing the text "test"
>
> What have I forgotten?
Maybe, just
label->show();
and/or
tabs->setCurrentPage(0);

?

Kleag
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic