From kde-devel Sat Feb 05 16:32:10 2000 From: Reginald Stadlbauer Date: Sat, 05 Feb 2000 16:32:10 +0000 To: kde-devel Subject: Re: QTab X-MARC-Message: https://marc.info/?l=kde-devel&m=94976833029035 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