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

List:       kde-devel
Subject:    Re: Newbie question about QTabWidget
From:       Thomas Kadauke <tkadauke () gmx ! de>
Date:       2006-06-11 20:38:24
Message-ID: 200606112238.24125.tkadauke () gmx ! de
[Download RAW message or body]

Hi,

In these situations, I always start Qt designer and build the relevant parts 
of the form. Then I save the .ui file to a temporary directory and start uic 
like so:

uic -impl foo.cpp uifile.ui

This will print out a C++ implementation of your form. Copy the parts you 
need, and you're done :)

--Thomas

Am Tuesday 06 June 2006 12:24 schrieb chauchot.etienne@free.fr:
> Hi,
>
> I am developping a KDE applicaiion using KDE 3.5 and QT 3.3. This is my
> first KDE application.
>
> I find difficulties to make a child widget of my Tab pages appear:
>
> From memory, my source looks like:
>
> mainWin is a KMainWindow
>
> 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?
>
>
> Thanks for your replies
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<
 
>> 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