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

List:       kde-devel
Subject:    Re: Newbie question about QTabWidget
From:       Thomas Baumgart <ipwizard () users ! sourceforge ! net>
Date:       2006-06-06 13:51:48
Message-ID: 200606061551.56336.ipwizard () users ! sourceforge ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tuesday 06 June 2006 15:08, chauchot.etienne@free.fr wrote:

> 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?

I have currently no access to my dev system with the docs, but being in the 
same situation as you in the past, I used Qt designer to create a sample 
widget and see what code it produces.

Maybe that helps.

-- 

Regards

Thomas Baumgart

thb@net-bembel.de               Check the KMyMoney open source
http://www.net-bembel.de/       project at http://kmymoney2.sf.net/

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
'I used *that other operating system* (now to be considered
open source? <g>) for some years' - anonymous source
-------------------------------------------------------------

[Attachment #5 (application/pgp-signature)]

>> 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