Qt3 - QButtongroup/LayoutProblem

Thomas Wedehase <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo Liste,

Ich möchte gern eine Buttongroup in ein bestehendes HBoxLayout aufnehmen, 
jedoch will dies nicht.
Habe die Doku und die Beispiele durchgeschaut und auch probiert, nur will das 
bei mir nicht klappen. Sobald ich das hereinnehme verschwindet das Layout auf 
dem TabWidget komplett.

QWidget *Material = new QWidget(centralTabs);
	QHBoxLayout *LayoutMaterialMain = new QHBoxLayout(Material);
		
	QButtonGroup *bgKategorie = new QButtonGroup;
	bgKategorie->setColumnLayout(0, Qt::Vertical);
	bgKategorie->layout()->setSpacing(5);
	bgKategorie->layout()->setMargin(10);
		
	QRadioButton *rbMedikamente = new QRadioButton("Medikamente", bgKategorie);
	QRadioButton *rbVerbrauchsmaterial = new 
QRadioButton("Verbrauchsmaterial",bgKategorie);
	QRadioButton *rbSonstiges = new QRadioButton("Sonstiges", bgKategorie);
	
	QGridLayout *bgKategorieLayout = new QGridLayout(bgKategorie->layout());
	bgKategorieLayout->addWidget(rbMedikamente, 0, 0);
	bgKategorieLayout->addWidget(rbVerbrauchsmaterial, 1, 0);
	bgKategorieLayout->addWidget(rbSonstiges, 2, 0);
	
	LayoutMaterialMain->addLayout(bgKategorie->layout());
	
	centralTabs->addTab(Material, tr("&Materialverwaltung"));	

Wo ist mein Fehler, kann mir jemand helfen? 

Gruß Thomas
-- 
Thomas Wedehase
Nuernberg, Germany
www.thomaswedehase.com
PGP-KEY: 0x3337F9AC

"The day Microsoft makes something that doesn't suck is probably
  the day they start making vacuum cleaners." -Ernst Jan Plugge
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBCI49zHS0UHzM3+awRAsTEAJ4j/T9k1qnqNIwusIFVKr/4267QQACbBuBQ
g97ABHoBqJJKxWCR2NWAo0Y=
=1MLC
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.