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

List:       kde-devel
Subject:    Re: QTab
From:       Reginald Stadlbauer <reggie () troll ! no>
Date:       2000-02-05 16:32:10
[Download RAW message or body]

On Sat, 05 Feb 2000, Mark Zealey wrote:
>Hi,
>   Is there a kde thing for QTab, bacause this causes my prog to segfault.
>Can you tell me why?
>
>foo:foo(QWidget *parent,const char *name) : QDialog(parent,name,true)
>{
>  QTabBar tabBar;
>  QTab tabName;
>  tabName.label="Hi";
>  tabBar.addTab(&tabName);
>}
>
>Kde2 CVSup from a few days ago...

You should create QTabBar with a parent (the dialog) and on the heap, same for
QTab (I mean creating on the heap). Also, are you sure you want to use QTabBar
and not QTabWidget?

-- 
Reggie

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

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