Thread: [Php-qt-users] Struggling with QTreeWidget
Status: Beta
Brought to you by:
tm243
From: Gereon <ger...@ci...> - 2008-02-09 10:53:12
|
Hi, This is my first try to do something with php-qt (in fact the first try to do anything with qt...) so I suppose I'm having some obvious mistake on how I use qt... :-( I simply try to create a Dialog with a QTreeWidget on it and some QTreeWidgetItems... Creating the dialog and the QTreeWidget all works $this->treeview = new QTreeWidget($this); $this->treeview->setColumnCount(1); With this I get a nice Widget containing a single columns, named 1 Now, I want to add an Item... This should work like this (afaik ;-) ): $item = new QTreeWidgetItem($this->treeview); $item->setText(0,"Hello World"); But now, the application crashes with a "Segmentation fault"... How do I do this correctly? nafur |