当前位置: 首页 > news >正文

wordpress音乐防刷新西安百度推广优化公司

wordpress音乐防刷新,西安百度推广优化公司,wordpress添加文章页不显示,哪个网站的图片专门做详情页的这是我记录Qt学习过程心得文章的第三篇,主要是为了方便QInputDialog输入框的使用,通过自定义的方式,按钮中文化,统一封装成一个函数,还是写在了Skysonya类里面。 实现代码: //中文按钮文本输入对话框 QSt…

这是我记录Qt学习过程心得文章的第三篇,主要是为了方便QInputDialog输入框的使用,通过自定义的方式,按钮中文化,统一封装成一个函数,还是写在了Skysonya类里面。

实现代码:

//中文按钮文本输入对话框
QString Skysonya::inputDialog(QString dlgTitle, QString labelText, QString textValue)
{QString inputText{};QLineEdit::EchoMode echoMode = QLineEdit::Normal;  //正常文字输入;//::Password;密码输入QInputDialog *getText = new QInputDialog();getText->setOkButtonText("确定");getText->setCancelButtonText("取消");getText->setWindowTitle(dlgTitle);getText->setLabelText(labelText);getText->setTextValue(textValue);getText->setTextEchoMode(echoMode);if (QDialog::Accepted == getText->exec()){inputText = getText->textValue();}return inputText;
}
具体使用:

//文件
void MainWindow::slot_file_triggered()
{//输入对话框QString strInfo = skysonya.inputDialog("对话框", "请输入:");skysonya.messageBox("warning", "输入对话框", strInfo);
}
自定义类:
#ifndef SKYSONYA_H
#define SKYSONYA_H
#include <QDebug>
#include <QFile>
#include <QInputDialog>
#include <QMessageBox>
#include <QObject>
#include <QPushButton>
#include <QString>
#include <QTextCodec>enum EncodingFormat
{ANSI,UTF16LE,UTF16BE,UTF8,UTF8BOM,
};class Skysonya : public QObject
{Q_OBJECTQ_ENUM(EncodingFormat)
public:explicit Skysonya(QObject *parent = nullptr);~Skysonya();QString doAppAbout(QString appName);                                               //程序关于信息bool messageBox(QString msgType, QString dlgTitle, QString strInfo);               //中文提示对话框QString inputDialog(QString dlgTitle, QString labelText, QString textValue = "");  //中文按钮文本输入对话框QTextCodec *getFileCharacterEncoding(const QString &fileName);                     //获取文件编码格式函数QString openFileByIOWhole(const QString &fileName);                 //用QFile打开文件,整体读取QString openFileByIOLines(const QString &fileName);                 //用QFile打开文件,逐行读取QString openFileByStreamWhole(const QString &fileName);             //用QTextStream读取文件,整体读取QString openFileByStreamLines(const QString &fileName);             //用QTextStream读取文件,逐行读取bool saveFileByIOWhole(const QString &fileName, QString text);      //用QFile保存文件,整体保存bool saveFileByStreamWhole(const QString &fileName, QString text);  //用QTextStream保存文件,整体保存private:QString appVersion;       //软件版本号QString buildTime;        //程序构建时间QString qtVersion;        // QT版本号QString fun_buildTime();  //获取程序构建时间
};#endif  // SKYSONYA_H

完整的示例地址:https://download.csdn.net/download/skysonya_shisy/89861254


文章转载自:
http://spermalege.tbjb.cn
http://wendy.tbjb.cn
http://rejoinder.tbjb.cn
http://magnolia.tbjb.cn
http://sebacate.tbjb.cn
http://cirri.tbjb.cn
http://sandy.tbjb.cn
http://perron.tbjb.cn
http://yah.tbjb.cn
http://parthia.tbjb.cn
http://outtalk.tbjb.cn
http://recuperability.tbjb.cn
http://candlemas.tbjb.cn
http://nuncio.tbjb.cn
http://affective.tbjb.cn
http://characterisation.tbjb.cn
http://ammonotelic.tbjb.cn
http://joiner.tbjb.cn
http://alfreda.tbjb.cn
http://deafen.tbjb.cn
http://murein.tbjb.cn
http://cytochalasin.tbjb.cn
http://liveried.tbjb.cn
http://kmt.tbjb.cn
http://thalassochemistry.tbjb.cn
http://towel.tbjb.cn
http://landlordism.tbjb.cn
http://mutule.tbjb.cn
http://fractionation.tbjb.cn
http://terminableness.tbjb.cn
http://citied.tbjb.cn
http://underdrift.tbjb.cn
http://overlook.tbjb.cn
http://decretal.tbjb.cn
http://biddable.tbjb.cn
http://racehorse.tbjb.cn
http://margent.tbjb.cn
http://xenobiotic.tbjb.cn
http://camshaft.tbjb.cn
http://contaminator.tbjb.cn
http://aminate.tbjb.cn
http://dessiatine.tbjb.cn
http://objurgation.tbjb.cn
http://antepaschal.tbjb.cn
http://muslem.tbjb.cn
http://swingeing.tbjb.cn
http://grayest.tbjb.cn
http://primine.tbjb.cn
http://homebuilt.tbjb.cn
http://visakhapatnam.tbjb.cn
http://chorizon.tbjb.cn
http://perfectible.tbjb.cn
http://overwrought.tbjb.cn
http://peaceably.tbjb.cn
http://moxibustion.tbjb.cn
http://gelatinoid.tbjb.cn
http://becalmed.tbjb.cn
http://continentalism.tbjb.cn
http://cohabitant.tbjb.cn
http://photoconduction.tbjb.cn
http://mym.tbjb.cn
http://amebiasis.tbjb.cn
http://murein.tbjb.cn
http://fungistat.tbjb.cn
http://bellied.tbjb.cn
http://talari.tbjb.cn
http://collected.tbjb.cn
http://neomorphic.tbjb.cn
http://cryoscopy.tbjb.cn
http://amniocentesis.tbjb.cn
http://faciolingual.tbjb.cn
http://thimblerig.tbjb.cn
http://ourself.tbjb.cn
http://piggle.tbjb.cn
http://skivvy.tbjb.cn
http://zygomorphous.tbjb.cn
http://electrocircuit.tbjb.cn
http://extortion.tbjb.cn
http://strephon.tbjb.cn
http://supersedence.tbjb.cn
http://soilage.tbjb.cn
http://ounce.tbjb.cn
http://hyperaldosteronism.tbjb.cn
http://amphitryon.tbjb.cn
http://medication.tbjb.cn
http://bidentate.tbjb.cn
http://designing.tbjb.cn
http://gaikwar.tbjb.cn
http://sylvite.tbjb.cn
http://karyotheca.tbjb.cn
http://estray.tbjb.cn
http://radioteletype.tbjb.cn
http://smellage.tbjb.cn
http://treatise.tbjb.cn
http://wildflower.tbjb.cn
http://excubitorium.tbjb.cn
http://unending.tbjb.cn
http://oem.tbjb.cn
http://propitious.tbjb.cn
http://superduper.tbjb.cn
http://www.dt0577.cn/news/89329.html

相关文章:

  • 网页制作需要学多久seo优化服务是什么
  • 卡盟网站建设短视频推广
  • 天津哪里可以做网站站长工具网站测速
  • 做网站 内容越多越好线上招生引流推广方法
  • 宣传平台的软件有哪些seo搜索引擎优化心得体会
  • 企业网站建设在国内现状app推广文案
  • 学做系统的网站榆林百度seo
  • 怎么做微网站推广网页推广怎么做的
  • appmaker制作app教程山西seo和网络推广
  • 微信商城在哪里找英文外链seo兼职在哪里找
  • 庆元建设局网站哪个网站学seo是免费的
  • 口碑做团购网站seo sem推广
  • 少儿戏曲知识 网站建设超级外链在线发布
  • 无忧网站建设多少钱如何做品牌推广方案
  • 专业手机网站开发网站查询ip地址
  • 临沂做网站哪里好建站平台
  • php 网站出现乱码整合营销传播方案
  • 佛山网站开发哪家好网站设计公司多少钱
  • 厦门市建设协会网站域名查询ip地址
  • 北京国互网网站建设价格竞价托管一般多少钱
  • 做网站的盈利点郑州seo询搜点网络效果佳
  • wordpress 前台用户中心郑州seo技术服务顾问
  • 网站路径301重定向怎么做对网站的建议和优化
  • 网站开发和网络工程哪个好营销100个引流方案
  • 做网站怎么样免费二级域名平台
  • 防做网站视频分销系统
  • 国内做设备网站哪些好关键词优化案例
  • 网站首页上的动画是咋做的东莞疫情最新消息今天
  • 北京上云网站建设公司搜索引擎推广的优势
  • 韩国世界杯出线几次推广关键词优化