From ddb4da7102a079af1d5c501f40aecc9076fcb01e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D1=80=D0=BE=D1=81?= =?UTF-8?q?=D0=BA=D1=83=D1=80=D0=BD=D1=91=D0=B2?= Date: Thu, 31 Dec 2020 14:49:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B0=D1=80=D0=B8=D0=B9=20=D0=BF=D0=BE=20=D1=81=D0=BE=D0=B7?= =?UTF-8?q?=D0=B4=D0=B0=D0=BD=D0=B8=D1=8E=20=D0=BE=D0=BA=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.cpp b/main.cpp index 182f596..fb448db 100644 --- a/main.cpp +++ b/main.cpp @@ -4,7 +4,14 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv); + + /* + * Задаётся размер и положение окна + * (int w = 640, int h = 480, int x = -1, int y = -1, QWidget *parent = nullptr) + * В случае отрицательнго значения x или y, окно создаётся в центре экрана. + */ QTSGraph w(1024,768); + w.show(); return a.exec(); }