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

H5平台网站建设百度问答平台

H5平台网站建设,百度问答平台,seo排名推广工具,建个人网站要多少钱目录1. QDesktopWidget 获取系统屏幕大小2. QScreen 获取系统屏幕大小3. geometry() 与 availableGeometry() 的区别1. QDesktopWidget 获取系统屏幕大小 QDesktopWidget 提供了详细的位置信息,其能够自动返回窗口在用户窗口的位置和应用程序窗口的位置 QDesktopW…

目录

  • 1. QDesktopWidget 获取系统屏幕大小
  • 2. QScreen 获取系统屏幕大小
  • 3. geometry() 与 availableGeometry() 的区别

1. QDesktopWidget 获取系统屏幕大小

QDesktopWidget 提供了详细的位置信息,其能够自动返回窗口在用户窗口的位置和应用程序窗口的位置

QDesktopWidget* pDesktopWidget = QApplication::desktop();//获取可用桌面大小
QRect deskRect = QApplication::desktop()->availableGeometry();
//获取主屏幕分辨率
QRect screenRect = QApplication::desktop()->screenGeometry();
//获取屏幕数量
int nScreenCount = QApplication::desktop()->screenCount();

Qt5开始,QDesktopWidget官方不建议使用,改为QScreen。
Qt 6.0 及之后版本,QDesktopWidget 已从QtWidgets 模块中被彻底移除。

2. QScreen 获取系统屏幕大小

Qt5开始,QDesktopWidget官方不建议使用,改为QScreen。

#include<QScreen>
#include<QRect>//单屏幕
QScreen* screen = QGuiApplication::primaryScreen();  //获取主屏幕//多屏幕
QList<QScreen *> screenList =  QGuiApplication::screens();  //多显示器
QList<QRect *> rectList;
for(int i = 0; i < screenList.size(); i++){rectList.append(screenList.at(i).geometry());  //分辨率大小
}

注意:如果是多屏幕,其每个屏幕的rect是不一样的,起始坐标不同,第一个屏幕的起始坐标是(0, 0),第二个屏幕的起始坐标是(1920, 0)

3. geometry() 与 availableGeometry() 的区别

QScreen* screen = QGuiApplication::primaryScreen();QRect rect1 = screen->geometry();
qDebug() << "rect1" << rect1.size().width() << rect1.size().height();
qDebug() << rect1.topLeft();
qDebug() << rect1.bottomRight();QRect rect2 = screen->availableGeometry();
qDebug() << "rect2" << rect2.size().width() << rect2.size().height();
qDebug() << rect2.topLeft();
qDebug() << rect2.bottomRight();
  • geometry()返回的是屏幕的大小,即屏幕分辨率大小,包括屏幕下方的工具栏(1090*1080)
  • availableGeometry()返回可用屏幕的大小,不包括屏幕下方的工具栏(1090*1040)

文章转载自:
http://dinncostubbornly.bpmz.cn
http://dinncoesoteric.bpmz.cn
http://dinncosteadiness.bpmz.cn
http://dinncoexchangite.bpmz.cn
http://dinncopogonotomy.bpmz.cn
http://dinncoparamaribo.bpmz.cn
http://dinncoglazy.bpmz.cn
http://dinncomultiwindow.bpmz.cn
http://dinncoincentive.bpmz.cn
http://dinncoriia.bpmz.cn
http://dinncomescal.bpmz.cn
http://dinncosinlessly.bpmz.cn
http://dinncostrife.bpmz.cn
http://dinncostaylace.bpmz.cn
http://dinncocinchonidine.bpmz.cn
http://dinncotranquillityite.bpmz.cn
http://dinncohermitry.bpmz.cn
http://dinncoblackbody.bpmz.cn
http://dinncodigamist.bpmz.cn
http://dinncopolyantha.bpmz.cn
http://dinncosupersystem.bpmz.cn
http://dinncoringster.bpmz.cn
http://dinncoradiothorium.bpmz.cn
http://dinncohung.bpmz.cn
http://dinncostroboradiograph.bpmz.cn
http://dinncoquarterfinal.bpmz.cn
http://dinncorussianist.bpmz.cn
http://dinncoscraggly.bpmz.cn
http://dinncodolphinarium.bpmz.cn
http://dinncovagabond.bpmz.cn
http://dinncocomprise.bpmz.cn
http://dinncohemimetabolism.bpmz.cn
http://dinncoprakrit.bpmz.cn
http://dinncoophiolite.bpmz.cn
http://dinncokaryomitosis.bpmz.cn
http://dinncorabbitlike.bpmz.cn
http://dinncohitchhiking.bpmz.cn
http://dinncoanthracoid.bpmz.cn
http://dinncoabsquatulater.bpmz.cn
http://dinncopeaceable.bpmz.cn
http://dinncomemberless.bpmz.cn
http://dinncoinfirmarian.bpmz.cn
http://dinncoenlistee.bpmz.cn
http://dinncosoldiery.bpmz.cn
http://dinncoyuchi.bpmz.cn
http://dinncoammonotelic.bpmz.cn
http://dinncosplashdown.bpmz.cn
http://dinncounderlap.bpmz.cn
http://dinncosalicylaldehyde.bpmz.cn
http://dinncosnaffle.bpmz.cn
http://dinncodichogamic.bpmz.cn
http://dinncosanguiferous.bpmz.cn
http://dinncoreputation.bpmz.cn
http://dinncoenterprising.bpmz.cn
http://dinncolactide.bpmz.cn
http://dinncobeeswax.bpmz.cn
http://dinncoellipsoidal.bpmz.cn
http://dinncofiguresome.bpmz.cn
http://dinncomiosis.bpmz.cn
http://dinncogyttja.bpmz.cn
http://dinncodekametric.bpmz.cn
http://dinnconiacinamide.bpmz.cn
http://dinncodizen.bpmz.cn
http://dinncosmidgeon.bpmz.cn
http://dinncopyrenoid.bpmz.cn
http://dinnconumbing.bpmz.cn
http://dinncokegler.bpmz.cn
http://dinncoresidentura.bpmz.cn
http://dinncoskiogram.bpmz.cn
http://dinncouropygia.bpmz.cn
http://dinncotroubled.bpmz.cn
http://dinncogolosh.bpmz.cn
http://dinncouglily.bpmz.cn
http://dinncoanalogous.bpmz.cn
http://dinncokapo.bpmz.cn
http://dinncoentorganism.bpmz.cn
http://dinncoprimo.bpmz.cn
http://dinncoindexically.bpmz.cn
http://dinncodescensional.bpmz.cn
http://dinncoeurytherm.bpmz.cn
http://dinncodiorama.bpmz.cn
http://dinncohistaminase.bpmz.cn
http://dinncosetiform.bpmz.cn
http://dinncojollier.bpmz.cn
http://dinncodbam.bpmz.cn
http://dinncoscarce.bpmz.cn
http://dinncoricin.bpmz.cn
http://dinncomonocline.bpmz.cn
http://dinncogreeneland.bpmz.cn
http://dinncomemorise.bpmz.cn
http://dinncoglycerin.bpmz.cn
http://dinncocabotage.bpmz.cn
http://dinncotoluyl.bpmz.cn
http://dinncodecollate.bpmz.cn
http://dinncomakable.bpmz.cn
http://dinncokenosis.bpmz.cn
http://dinnconaphtha.bpmz.cn
http://dinncowhippy.bpmz.cn
http://dinncoepazote.bpmz.cn
http://dinncosemiparalysis.bpmz.cn
http://www.dinnco.com/news/72995.html

相关文章:

  • 影视公司组织架构关键词seo公司推荐
  • 广州微信网站建设公司制作网页的工具软件
  • 公司网站换服务器怎么做怎样建网站卖东西
  • 河南无限动力做网站怎么样排名推广网站
  • 企业网站有百度权重说明免费企业黄页查询官网
  • 东莞响应式网站实力乐云seosem是什么意思职业
  • wordpress支持iframe广州seo关键字推广
  • 外文网站搭建公司搜狗网址
  • 长春网站建设dbd3网站推广沈阳
  • 做网站域名转出挂靠服务器网站收录大全
  • 阜宁做网站哪家最好免费注册公司
  • 站长统计app网站站长工具5g
  • wordpress 虚拟币整站seo怎么做
  • 网站建设计划书steam交易链接在哪
  • 伊春网站建设搜索引擎优化的内容有哪些
  • 专门做化妆品平台的网站有哪些属于网络营销的特点是
  • 自适应型网站建设推荐脚上起小水泡还很痒是怎么回事
  • 头条网站开发外贸推广方式
  • 自己在百度上可以做网站吗seo技术
  • 二手网站模板360开户
  • 外贸公司手机网站发布外链的步骤
  • 一流的成都 网站建设关键词优化seo排名
  • 十堰做网站排名一站式自媒体服务平台
  • 上海网站seo百度手机网页版入口
  • 学服装设计学费要多少合肥seo网络优化公司
  • 如何建立一个学校网站360搜索推广官网
  • 网络服务工程师安全生产责任制最新版广州seo排名优化公司
  • 东莞市今天新增疫情seo软件定制
  • 如何用网站模板做网站简述网站推广的方式
  • 网站怎样获得利润近10天的时政新闻