Модератор: ArtMares
<?php
/* The QWidget class is the base class of all user interface objects.
The widget is the atom of the user interface: it receives mouse, keyboard and other events from the window system,
and paints a representation of itself on the screen.
Every widget is rectangular, and they are sorted in a Z-order.
A widget is clipped by its parent and by the widgets in front of it.
You can read more information about QWidget class there: http://doc.qt.io/qt-5/qwidget.html#details
*/
class MainWindow extends QWidget {
public function __construct() {
parent::__construct();
$this->initComponents();
}
private function initComponents() {
$w = new QWidget;
QObject;
QTimer;
QPushButton;
connect(SIGNAL() SLOT());
}
}
$mainWindow = new MainWindow;
$mainWindow->show();
qApp::exec();
zazaka писал(а):форум тег оформления добавляет который не работает