Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

[Solved] how to work with Geom in QT?

$
0
0
geom does not work right. When you define a new position for the window, part of it is off screen. How to solve this problem? #include "mainwindow.h" #include "ui_mainwindow.h"   MainWindow::MainWindow(QWidget *parent) :     QMainWindow(parent),     ui(new Ui::MainWindow) {     ui->setupUi(this);       QRect test(0,0,300,240);     setGeometry(test); }   MainWindow::~MainWindow() {     delete ui; } Solved: I was testing various functions QMainWindow and found the move() MainWindow::MainWindow(QWidget *parent) :     QMainWindow(parent),     ui(new Ui::MainWindow) {     ui->setupUi(this);       QRect test(0,0,300,240);     setGeometry(test);     move(0,0);//Fix }

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>