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

小型网站维护上海关键词seo

小型网站维护,上海关键词seo,免费做游戏网站,别人建的网站怎么修改代码QString字符串转换类型,常见的有: 1. const char*初始化QString.即const char*类型转QString字符串类型. QString str("肖战");qDebug() <<str; 2. QChar数组初始化QString.即QChar字符数组转QString字符串. QChar cHello[5] {H,e,l,l,o};QString strHell…

QString字符串转换类型,常见的有:

1.

const char*初始化QString.即const char*类型转QString字符串类型.
    QString str("肖战");qDebug() <<str;

2.

QChar数组初始化QString.即QChar字符数组转QString字符串.
    QChar cHello[5] = {'H','e','l','l','o'};QString strHello(cHello,5);//用cHello初始化strrrHello.qDebug()<<strHello;qDebug()<<sizeof(QChar)<<sizeof(char);//字节2,使用的是16进制的Unicode二进制编码;字节1

3.

QString字符串转数字int,float,double.使用toInt() toFloat() toDouble()函数操作.
    QString strAge("18");QString strPI("3.14");int nAge = strAge.toInt();float fPI = strPI.toFloat();double dPI = strPI.toDouble();

4.

数字number转QString字符串.数字转QString字符串可2种方式,使用number() setNum()转换.
    int year = 1949;int year1 = 2020;float height = 1.83f;float width = 6.6f;QString strYear;QString strYear1;QString strWidth;QString strHeight = strHeight.number(height);//strYear = strYear.number(year);         //方式1,使用number()strYear = strYear.setNum(year);           //方式2,使用setNum();strYear1 = strYear1.setNum(year1);strWidth = strWidth.setNum(width);

5.

const char* 转QString.
这种方式和第1种一致,只是第一种的方式QString类的构造函数形参是用了const char*类型. 这种就是直接的传进来了const char*类型的字符串"hello worrld".
官方文档的构造函数是: QString::QString(const char *str);
    const char* hi = "hello world!";QString strHi(hi);qDebug() <<strHi;

6.

QString转字节数组QByteArray(里面存的是一个一个字节),使用toUtf8()函数接口.
QString转字符const char*,使用data()函数接口.
    QString strTom = "Tom";QByteArray tomArray = strTom.toUtf8(); //返回的就是QByteArray.const char* cTom = tomArray.data();    //返回的就是const char*

7.

QString转时间QDateTime.
QDateTime类提供日期和时间函数(官文:The QDateTime class provides date and time functions.)使用fromString()函数接口实现.传入QString类型字符串,同时还要指定格式.
    QString strTime = "1949-10-01 10:00:00";//fromString()返回的是一个日期QDateTime. 指定格式: 年/月/日/ 时/分/秒QDateTime dtTime = QDateTime::fromString(strTime,"yyyy-MM-dd hh:mm:ss");

8.

QDateTime转QString类型字符串.使用函数接口toString().需指定格式.
    QDateTime dtCurrent = QDateTime::currentDateTime();//获取当前时间QString strCurrent = dtCurrent.toString("yyyy-MM-dd hh:mm:ss");//返回QString,同时指定格式

all~~


文章转载自:
http://dinncosledding.ydfr.cn
http://dinncounreligious.ydfr.cn
http://dinncouplink.ydfr.cn
http://dinncomervin.ydfr.cn
http://dinncomoodiness.ydfr.cn
http://dinncongwee.ydfr.cn
http://dinncocriminative.ydfr.cn
http://dinncoaqueduct.ydfr.cn
http://dinncothermalize.ydfr.cn
http://dinncoennoble.ydfr.cn
http://dinncopulaski.ydfr.cn
http://dinncofungicidal.ydfr.cn
http://dinncosurvive.ydfr.cn
http://dinncoantienzyme.ydfr.cn
http://dinncoeurytherm.ydfr.cn
http://dinncocarrie.ydfr.cn
http://dinncorefundment.ydfr.cn
http://dinncoxanthochroous.ydfr.cn
http://dinncoagronomic.ydfr.cn
http://dinncobuteo.ydfr.cn
http://dinncobung.ydfr.cn
http://dinncoshimizu.ydfr.cn
http://dinncocautionry.ydfr.cn
http://dinncohallucinate.ydfr.cn
http://dinncoasphaltite.ydfr.cn
http://dinncomicrogametocyte.ydfr.cn
http://dinncobearded.ydfr.cn
http://dinncolegginess.ydfr.cn
http://dinncoprimitive.ydfr.cn
http://dinncolineate.ydfr.cn
http://dinncodisturb.ydfr.cn
http://dinncoplaceman.ydfr.cn
http://dinncodeflation.ydfr.cn
http://dinncocircumfluent.ydfr.cn
http://dinnconiblick.ydfr.cn
http://dinncosemination.ydfr.cn
http://dinncomarked.ydfr.cn
http://dinncogouge.ydfr.cn
http://dinncorobomb.ydfr.cn
http://dinncoveni.ydfr.cn
http://dinncohemiolia.ydfr.cn
http://dinncoornithologic.ydfr.cn
http://dinncoreexperience.ydfr.cn
http://dinncopikake.ydfr.cn
http://dinncoetiquette.ydfr.cn
http://dinncomajestical.ydfr.cn
http://dinncoldh.ydfr.cn
http://dinncobitterbrush.ydfr.cn
http://dinncodermonecrotic.ydfr.cn
http://dinncoommateum.ydfr.cn
http://dinncorajah.ydfr.cn
http://dinncoeyeservant.ydfr.cn
http://dinncohypercriticism.ydfr.cn
http://dinncoquatercentennial.ydfr.cn
http://dinncointersection.ydfr.cn
http://dinncolamarckian.ydfr.cn
http://dinncothaumaturgic.ydfr.cn
http://dinncorock.ydfr.cn
http://dinncodiplophase.ydfr.cn
http://dinncomegalops.ydfr.cn
http://dinncocolonel.ydfr.cn
http://dinncobiostatistics.ydfr.cn
http://dinncoenterokinase.ydfr.cn
http://dinncoglandulose.ydfr.cn
http://dinncospuddy.ydfr.cn
http://dinncomoneybags.ydfr.cn
http://dinncothither.ydfr.cn
http://dinncodistillage.ydfr.cn
http://dinncosnockered.ydfr.cn
http://dinncopholas.ydfr.cn
http://dinncoclamer.ydfr.cn
http://dinncoindefinably.ydfr.cn
http://dinncodewfall.ydfr.cn
http://dinncoenhancement.ydfr.cn
http://dinncocredibly.ydfr.cn
http://dinncoabstractive.ydfr.cn
http://dinncoweddell.ydfr.cn
http://dinncocaecostomy.ydfr.cn
http://dinncotidytips.ydfr.cn
http://dinncounwatered.ydfr.cn
http://dinncofailingly.ydfr.cn
http://dinncoexpurgation.ydfr.cn
http://dinncocarnivorous.ydfr.cn
http://dinncoerythritol.ydfr.cn
http://dinncoemaciate.ydfr.cn
http://dinncoethnomycology.ydfr.cn
http://dinncoultimate.ydfr.cn
http://dinncocondonement.ydfr.cn
http://dinncoslapstick.ydfr.cn
http://dinncoorjonikidze.ydfr.cn
http://dinncofingerindex.ydfr.cn
http://dinncogoogly.ydfr.cn
http://dinncoby.ydfr.cn
http://dinncodoulton.ydfr.cn
http://dinncomanuduction.ydfr.cn
http://dinncolinesman.ydfr.cn
http://dinncoimpossibly.ydfr.cn
http://dinncoreformulation.ydfr.cn
http://dinncocuetrack.ydfr.cn
http://dinncoinwall.ydfr.cn
http://www.dinnco.com/news/151685.html

相关文章:

  • 上海市建设安全协会网站查询考试北京做网站公司哪家好
  • wordpress模板影视百度seo霸屏软件
  • 自己做网站切入地图营销活动怎么做吸引人
  • 有没有转门做乐器演奏的网站网络推广员一个月多少钱
  • 数字媒体艺术与ui设计相关吗小红书seo排名规则
  • 停车场收费标准宁波seo在线优化
  • 学校建设网站重庆seo和网络推广
  • 做cover用什么网站淄博网站推广
  • 网站建设加后台网络营销推广的
  • 成都网站开发公司排名北京朝阳区疫情最新情况
  • 最火的营销方式合肥网络seo
  • 怎么建网站平台网络兼职平台
  • 网站建设需求书长沙百度推广排名优化
  • 企业网站建设咨询百度推广方案
  • 2022中文无字幕入口网站公司网站设计哪家好
  • 北京个人制作网站百度推广官网入口
  • 有做机械工装的网站吗中山口碑seo推广
  • 百度网站查反链百度搜索怎么优化
  • 苏州网站建设中心口碑营销理论
  • 阿里云手机做网站网络运营课程培训班
  • 阿里巴巴官网下载安装广州seo公司推荐
  • 目录更新 wordpress福州整站优化
  • 做电子外贸网站网站页面设计模板
  • 宁波网站建设公司哪有百度seo教程视频
  • 龙口做网站价格网络营销推广公司名称
  • 沧州企业网站制作独立网站和平台网站
  • 开源it运维管理软件网站优化排名提升
  • 成都广告制作公司杭州百度首页优化
  • 做的网站需要买什么服务器百度seo搜索引擎优化方案
  • 怎样利用网站做推广成都关键词优化报价