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

List:       kde-devel
Subject:    Re: KJanusWidget use
From:       Malte Starostik <malte () kde ! org>
Date:       2001-06-29 15:43:46
[Download RAW message or body]

On Freitag, 29. Juni 2001 17:26, Jon Doud wrote:
> Does anyone have an example of how to use the KJanusWidget? I am having a
> difficult time adding a subclassed widget to a page.
>
> Code example:
> subpages << "Characters" << "Priority";
> 		ptr_priority = addPage(subpages);
		QHBoxLayout *layout = new AHBoxLayout(ptr_priority);
		layout->setAutoAdd(true);
> 		page_priority = new KSRPriorityTable(ptr_priority);
>
> This adds the widget, but I can only view a small portion of the widget.  I
> cannot figure out how to resize it.  When I make this class the main view,
> it displays fine.
You need a layout for that. The above two lines should do it.
-Malte
 
>> Visit http://master.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