设置标题栏图标,位置与大小示例
MainWidow::MainWidow(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); this->setWindowTitle("QQ "); this->setWindowIcon(QIcon(":/images/po.jpg"));//设置图标 this->setWindowFlags(Qt::FramelessWindowHint);//去掉标题栏 this->setGeometry(QRect(950, 55, 350, 250));//可设置窗口显示的方位与大小 }