您当前的位置: 首页 >  qt

txwtech

暂无认证

  • 5浏览

    0关注

    813博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

QT各种对话框示范

txwtech 发布时间:2022-08-22 20:48:35 ,浏览量:5

QT各种对话框示范

颜色对话框

文件对话框

字体对话框

输入对话框

消息对话框

进度对话框

错误信息对话框

向导对话框

QT各种对话框demo.rar-QT文档类资源-CSDN下载QT各种对话框demo.rarhttps://txwtech.blog.csdn.net/arti更多下载资源、学习资料请访问CSDN下载频道.https://download.csdn.net/download/txwtech/86427596

#include "widget_3_7.h"
#include "ui_widget_3_7.h"
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

Widget_3_7::Widget_3_7(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget_3_7)
{
    ui->setupUi(this);
    errorDlg2= new QErrorMessage(this);
}

Widget_3_7::~Widget_3_7()
{
    delete ui;
}


void Widget_3_7::on_pushButton_color_clicked()//颜色对话框
{
    //方法一,QColorDialog类的静态函数显示颜色对话框
   // QColor color=QColorDialog::getColor(Qt::green,this,tr("颜色对话框"));//没有透明度alpha的选项
    QColor color=QColorDialog::getColor(Qt::green,this,tr("颜色对话框"),QColorDialog::ShowAlphaChannel);//有透明度选项
    qDebug()            
关注
打赏
1665060526
查看更多评论
0.1012s