QT开发笔记

设置标题栏图标,位置与大小示例

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));//可设置窗口显示的方位与大小
}

猜你喜欢

转载自www.cnblogs.com/2018shawn/p/11404767.html