Re: [Php-qt-users] PHP-QT
Status: Beta
Brought to you by:
tm243
From: Ferenc V. <li...@ne...> - 2008-03-13 21:53:43
|
Hi all, Re Vladimir's mail, I tried to make a simple QTextEdit (svn version from today), and it results in segfault. I use a very simple code: <?php class MyWidget extends QWidget { function __construct() { parent::__construct(); $this->quit = new QTextEdit($this); } } $app = new QApplication($argc,$argv); $widget = new MyWidget(); $widget->show(); $app->exec(); ?> I get the same result if I use QTextEdit(tr("Quit"), $this); If I use QPushButton or QCheckbox instead QTextEdit, they appear correctly. Any ideas? (Last lines of error output below.) (Mandriva 2008, x86_64, php 5.2.4. Thomas: the debug php/qt builds may still have some side effects here, because I cannot get a rid of that PHP from Apache for example. I'll reinstall with 2008.1 when it comes out.) Vladimir: most documentation you'll need is the QT documentation itself. http://doc.trolltech.com/4.1/classes.html If you successfully installed php_qt, you can start running and examining the examples in the "tutorials" folder. There are a lot of good examples there. You can try the example above too, maybe it works for you. :-) Go to tutorials/t1 directory and type php main.php in the console. Thanks, Ferenc ps: Call Stack: 0.0003 134816 1. {main}() /home/lion/test.php:0 0.0394 139680 2. MyWidget->__construct() /home/lion/test.php:12 0.0402 143496 3. QTextEdit->__construct() /home/lion/test.php:8 Szegmens hiba SAKrisT írta, 2008-03-07 11:23 keltezéssel: > Hello > > It is a pity that I did not want to send a training manual for PHP-qt. : ( > > Then will ask. > > How to create QTextEdit object? > In the examples that do not. > > Yongsan grateful for the help! > > Vladimir > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Php-qt-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/php-qt-users > |