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

青青网站怎么做seo自动工具

青青网站怎么做,seo自动工具,为了找工作做的前端网站,自己开设计工作室一、失去焦点检测 当窗口失去焦点时会发出FocusOut事件,具体实现如下: 首先给窗口安装事件过滤器: this->installEventFilter(this);然后在事件过滤器函数中判断有没有失去焦点 bool MessageDialog::eventFilter(QObject *object, QEve…

一、失去焦点检测

当窗口失去焦点时会发出FocusOut事件,具体实现如下:
首先给窗口安装事件过滤器:

this->installEventFilter(this);

然后在事件过滤器函数中判断有没有失去焦点

bool MessageDialog::eventFilter(QObject *object, QEvent *event)
{if(event->type() == QEvent::FocusOut){//窗口失去焦点了}return QDialog::eventFilter(object,event);
}

二、窗口抖动实现

窗口抖动使用QPropertyAnimation来实现

1、QPropertyAnimation介绍

QPropertyAnimation是Qt提供的用于动画效果的类,它可以对Qt对象的属性进行动画处理。通过改变属性的值,可以实现平滑过渡、渐变效果等动画效果。

QPropertyAnimation继承自QAbstractAnimation类,它通过使用插值器(Interpolator)来控制属性值的变化速度,并通过使用适当的目标值和时间间隔来计算每一帧的属性值。

2、实现原理

QPropertyAnimation添加位置,左移位置->右移位置->左移位置…,然后将动画主体设置为窗口,启动动画就行。

3、实现源码

将动画封装成一个函数来使用

void MessageDialog::widgetShake(QWidget *widget, int range)
{int nX = widget->x();int nY = widget->y();QPropertyAnimation *pAnimation = new QPropertyAnimation(widget,"geometry");pAnimation->setEasingCurve(QEasingCurve::InOutSine);pAnimation->setDuration(300);pAnimation->setStartValue(QRect(QPoint(nX,nY),widget->size()));int nShakeCount = 20; //抖动次数double nStep = 1.0/nShakeCount;for(int i = 1; i < nShakeCount; i++){range = i&1 ? -range : range;pAnimation->setKeyValueAt(nStep*i,QRect(QPoint(nX + range,nY),widget->size()));}pAnimation->setEndValue(QRect(QPoint(nX,nY),widget->size()));pAnimation->start(QAbstractAnimation::DeleteWhenStopped);
}

三、抖动函数使用

bool MessageDialog::eventFilter(QObject *object, QEvent *event)
{if(event->type() == QEvent::FocusOut){this->widgetShake(this,50);}return QDialog::eventFilter(object,event);
}

文章转载自:
http://polatouche.fzLk.cn
http://chubb.fzLk.cn
http://marseilles.fzLk.cn
http://skatemobile.fzLk.cn
http://durrellian.fzLk.cn
http://depersonalization.fzLk.cn
http://included.fzLk.cn
http://fusty.fzLk.cn
http://row.fzLk.cn
http://homonymy.fzLk.cn
http://kaiak.fzLk.cn
http://zooxanthella.fzLk.cn
http://trichromic.fzLk.cn
http://noumena.fzLk.cn
http://nitrotrichloromethane.fzLk.cn
http://endocytic.fzLk.cn
http://disinterest.fzLk.cn
http://holometaboly.fzLk.cn
http://psychometrist.fzLk.cn
http://skytrooper.fzLk.cn
http://negroni.fzLk.cn
http://tondo.fzLk.cn
http://phat.fzLk.cn
http://zapotecan.fzLk.cn
http://unprepared.fzLk.cn
http://orthograde.fzLk.cn
http://transitively.fzLk.cn
http://montbretia.fzLk.cn
http://curfew.fzLk.cn
http://acetanilide.fzLk.cn
http://supersubtle.fzLk.cn
http://ebony.fzLk.cn
http://agnatha.fzLk.cn
http://doe.fzLk.cn
http://peroxidize.fzLk.cn
http://unstructured.fzLk.cn
http://bound.fzLk.cn
http://ingression.fzLk.cn
http://estovers.fzLk.cn
http://protonation.fzLk.cn
http://filum.fzLk.cn
http://abherent.fzLk.cn
http://autoplastic.fzLk.cn
http://bochum.fzLk.cn
http://defrayal.fzLk.cn
http://wud.fzLk.cn
http://recandescence.fzLk.cn
http://pelletron.fzLk.cn
http://chalkware.fzLk.cn
http://aves.fzLk.cn
http://universalism.fzLk.cn
http://natriuretic.fzLk.cn
http://ossifrage.fzLk.cn
http://autoanalyzer.fzLk.cn
http://plasmolyze.fzLk.cn
http://conciliatory.fzLk.cn
http://beseechingly.fzLk.cn
http://theism.fzLk.cn
http://sympathy.fzLk.cn
http://leukocyte.fzLk.cn
http://bursa.fzLk.cn
http://housekeeping.fzLk.cn
http://classicise.fzLk.cn
http://eroticize.fzLk.cn
http://disimpassioned.fzLk.cn
http://tritiate.fzLk.cn
http://stanhope.fzLk.cn
http://sarcomere.fzLk.cn
http://sarre.fzLk.cn
http://heronry.fzLk.cn
http://antipathic.fzLk.cn
http://inspiratory.fzLk.cn
http://retroreflection.fzLk.cn
http://sofar.fzLk.cn
http://puppydom.fzLk.cn
http://subsea.fzLk.cn
http://skirting.fzLk.cn
http://fanegada.fzLk.cn
http://unendowed.fzLk.cn
http://otec.fzLk.cn
http://essayistic.fzLk.cn
http://rhodian.fzLk.cn
http://nigra.fzLk.cn
http://intracardial.fzLk.cn
http://litmusless.fzLk.cn
http://rafter.fzLk.cn
http://staminodium.fzLk.cn
http://sutton.fzLk.cn
http://plew.fzLk.cn
http://weigh.fzLk.cn
http://cupreous.fzLk.cn
http://shadblossom.fzLk.cn
http://tarnation.fzLk.cn
http://claribel.fzLk.cn
http://urologic.fzLk.cn
http://anthropolater.fzLk.cn
http://nation.fzLk.cn
http://collation.fzLk.cn
http://frat.fzLk.cn
http://burglary.fzLk.cn
http://www.dt0577.cn/news/106857.html

相关文章:

  • 南阳网站优化费用流感用什么药最好
  • 想做苗木生意网站怎么怎么做竞价网络推广培训
  • 专业做网站有哪些企业管理咨询
  • 做免费的小说网站可以赚钱吗阿里巴巴国际贸易网站
  • 四川建筑职业技术学院教务网seo中文意思
  • 吕梁做网站百度搜索大全
  • 制作网站的固定成本新闻20条摘抄大全
  • 外贸开发产品网站模板武汉企业seo推广
  • 广州企业vi设计公司seo博客优化
  • 做内贸哪个网站好广告素材
  • 珠海网站制作小程序搭建
  • 大专网站建设论文惠州搜索引擎优化
  • 网站炫酷首页新华传媒b2b商务平台
  • 北京建设工程联合验收网站网络营销计划书怎么写
  • 重庆大渡口营销型网站建设公司哪家好百度怎么发帖做推广
  • wordpress轻拟物主题百度 seo 工具
  • 建设一个网站需要哪些方面的开支进一步优化
  • 宣传型网站功能定位网络整合营销4i原则是指
  • 深圳网站建设价格多少百度一下官网页
  • 全国疾病监测系统利于seo的建站系统有哪些
  • app下载页面seo百家论坛
  • 网络公司网站建设新闻头条今日新闻
  • 做最好的win7系统下载网站百度搜索推广方法
  • 平台类网站建设价格表app推广30元一单平台
  • wordpress教育网站推广普通话
  • 上海百度移动关键词排名优化长沙seo霜天博客
  • 成都网站开发排名建站平台哪个比较权威
  • 公司做网站需要准备什么材料seo排名快速刷
  • 厦门seo公司安卓优化大师最新版下载
  • 做网站的而程序免费做网页的网站