0
geom
不能正常工作。當你爲窗口定義一個新的位置時,它的一部分會被關閉。如何解決這個問題呢?如何在QT中使用Geom?
#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;
}