Re: [Php-qt-users] QGridLayout
Status: Beta
Brought to you by:
tm243
From: Ferenc V. <li...@ne...> - 2006-01-20 21:36:00
|
Hi all, Thomas Moenicke wrote: > > It runs if I create the Slider but omit it from the layout. > > /* LCD only */ > I checked out the latest version and runs perfect with adding QLineEdit and QPushButton controls to the grid. Great! :-) In my code I have public arrays for all those controls. In tutorial 6, I think the LCDRange() has no public class member variable assigned. (Same in C++ original tutorial.) I don't know if this difference causes changing the line in t6/main.php: $this->grid->addWidget(new QPushButton("a",$this), $row, $column, 0); or $this->grid->addWidget(new QLineEdit("a",$this), $row, $column, 0); to segfault. (Garbage collector kills the referenced QLineEdit?) (I have the same controls in my program and they work well. Anyway, I don't think anyone would create a control without some way to access it (i.e. a class member object). Then I just wonder why the original T6 works. :-) ) Ferenc |