Jump to: navigation, search
PHP-Qt is still under development.

PHP is a widely used programming language with support for object orientation. You can find more about the language and its interpreter at, or read about the PHP compiler at

The purpose of PHP bindings is enabling PHP developers to write desktop applications using the powerful technologies provided by Qt, KDE and related frameworks. For now the Qt API is covered.

    class MyWidget extends QWidget
        private $quit;
        private $slider;
        private $layout;
        private $lcd;
        function __construct()
            $this->quit = new QPushButton(tr("Quit"));
            $this->quit->setFont(new QFont("Times", 18, QFont::Bold));
            $this->lcd = new QLCDNumber(2);
            $this->slider = new QSlider(Qt::Horizontal);
            $this->slider->setRange(0, 99);
            $this->connect($this->quit, SIGNAL('clicked()'), 
                        QApplication::instance(), SLOT('quit()'));
            $this->connect($this->slider, SIGNAL('valueChanged(int)'),
                        $this->lcd, SLOT('display(int)'));
            $this->layout = new QVBoxLayout();

More information

This page was last modified on 22 August 2012, at 01:07. This page has been accessed 12,219 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal