摘要:
QT窗口API函数 geometry() 用于获取窗口在屏幕上的几何位置和大小 QRect geo = widget->geometry(); int x = geo.x(); // 窗口左上角的 x 坐标 int y = geo.y(); // 窗口左上角的 y 坐标 int w = geo.wi 阅读全文
posted @ 2023-12-08 15:59
秃头的C#
阅读(95)
评论(0)
推荐(0)
摘要:
#include "dialog.h" Dialog::Dialog(QWidget *parent) : QDialog(parent) { resize(260,80); glayout = new QGridLayout(this); labelmsg=new QLabel("自定义消息框") 阅读全文
posted @ 2023-12-08 14:30
秃头的C#
阅读(101)
评论(0)
推荐(0)
摘要:
#include "dialog.h" #include "ui_dialog.h" Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Dialog) { ui->setupUi(this); resize(320,150); 阅读全文
posted @ 2023-12-08 14:07
秃头的C#
阅读(112)
评论(0)
推荐(0)
摘要:
private: QGridLayout * glayout; QPushButton *inputStudentNoButton; QLineEdit *inputStudentNoButtonLine; QPushButton *inputStudentNameButton; QLineEdit 阅读全文
posted @ 2023-12-08 11:24
秃头的C#
阅读(132)
评论(0)
推荐(0)
摘要:
#ifndef DIALOG_H #define DIALOG_H #include <QDialog> #include<QPushButton> #include<QLineEdit> #include<QFontDialog> #include<QGridLayout> class Dialo 阅读全文
posted @ 2023-12-08 09:11
秃头的C#
阅读(21)
评论(0)
推荐(0)