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

摄影网站建站营销技巧五步推销法

摄影网站建站,营销技巧五步推销法,详情页通用模板,分类信息网站开发教程一、鼠标 鼠标点击 mousePressEvent 鼠标释放 mouseReleaseEvent 鼠标移动 mouseMoveEvent 鼠标双击 mouseDoubleClickEvent 鼠标滚轮 QWheelEvent 二、键盘 键盘按下 keyPressEvent 键盘松开keyReleaseEvent 一、鼠标 #include <QMouseEvent> 鼠标点击 mouse…

一、鼠标

鼠标点击 mousePressEvent

鼠标释放 mouseReleaseEvent

鼠标移动 mouseMoveEvent

鼠标双击 mouseDoubleClickEvent

鼠标滚轮 QWheelEvent

二、键盘

键盘按下 keyPressEvent

键盘松开keyReleaseEvent


一、鼠标

#include <QMouseEvent> 

鼠标点击 mousePressEvent

void Widget::mousePressEvent(QMouseEvent *event){  if(event->button() == Qt::RightButton){}if(event->button() == Qt::LeftButton){}
}

鼠标释放 mouseReleaseEvent

void Widget::mouseReleaseEvent(QMouseEvent *event){ if(event->button() == Qt::RightButton){}if(event->button() == Qt::LeftButton){}
}

鼠标移动 mouseMoveEvent

void Widget::mouseMoveEvent(QMouseEvent *event){this->move(QPoint());
}注:
event->globalPos();//光标的位置
QCursor::pos();//光标的位置
this->pos();//界面左上角位置

鼠标双击 mouseDoubleClickEvent

void Widget::mouseDoubleClickEvent(QMouseEvent *event)

鼠标滚轮 QWheelEvent

void Widget::wheelEvent(QWheelEvent* event)
{
//使用 angleDelta() 来获取滚动角度增量QPoint angleDelta = event->angleDelta();if (!angleDelta.isNull()) {int yDelta = angleDelta.y(); // 获取垂直方向上的增量if (yDelta > 0) {// 向上滚动qDebug() << "UP";}else if (yDelta < 0) {// 向下滚动qDebug() << "DOWN";}//或者使用 pixelDelta() 来获取滚动像素增量QPoint pixelDelta = event->pixelDelta();if (!pixelDelta.isNull()) {int yDelta = pixelDelta.y(); // 获取垂直方向上的增量if (yDelta > 0) {}else if (yDelta < 0) {}}
}

注:qt5是event->delta();

二、键盘

#include <QKeyEvent> 

键盘按下 keyPressEvent

void Widget::keyPressEvent(QKeyEvent *event){
//特殊按键 如按下CTRLif(event->modifiers() == Qt::CTRL){}//普通按键 如按下Aif(event->key() == Qt::Key_A){}else{  QWidget::keyPressEvent(event);//保持基类默认}
}

键盘松开 keyReleaseEvent

void Widget::keyReleaseEvent(QKeyEvent *event){switch (event->key()) {case Qt::Key_Up:if (!event->isAutoRepeat()) {} //使用isAutoRepeat是为了识别自动重复,即事件发生一次就执行一次功能break;case Qt::Key_Left:if (!event->isAutoRepeat()) {}break;default:break;}// 调用基类的方法来处理默认行为QWidget::keyReleaseEvent(event);
}

注:isAutoRepeat:

如 
if (!event->isAutoRepeat()) {jump();}

只会在按下一次键盘后执行一次jump函数,在游戏中就只会让角色跳跃一次。


文章转载自:
http://dinnconegotiating.tpps.cn
http://dinncounuseful.tpps.cn
http://dinncodipterous.tpps.cn
http://dinncoalgin.tpps.cn
http://dinncoepigram.tpps.cn
http://dinncoroily.tpps.cn
http://dinncoglossography.tpps.cn
http://dinncomicroampere.tpps.cn
http://dinncocrinkleroot.tpps.cn
http://dinncomisplead.tpps.cn
http://dinncolucubrator.tpps.cn
http://dinncosijo.tpps.cn
http://dinncoairmark.tpps.cn
http://dinncoautocoid.tpps.cn
http://dinncomalacostracous.tpps.cn
http://dinncohypochondrium.tpps.cn
http://dinncopaleobiogeography.tpps.cn
http://dinncosolicitude.tpps.cn
http://dinncorooseveltism.tpps.cn
http://dinncosilenus.tpps.cn
http://dinncocalotte.tpps.cn
http://dinncojurisprudence.tpps.cn
http://dinncoacu.tpps.cn
http://dinncomockery.tpps.cn
http://dinncostenotypist.tpps.cn
http://dinncojetty.tpps.cn
http://dinncoquietus.tpps.cn
http://dinncoderide.tpps.cn
http://dinncomiliary.tpps.cn
http://dinncoevisceration.tpps.cn
http://dinncocoleopteran.tpps.cn
http://dinncointensely.tpps.cn
http://dinncowhetter.tpps.cn
http://dinncobun.tpps.cn
http://dinncodemultiplexer.tpps.cn
http://dinncovoussoir.tpps.cn
http://dinncopantler.tpps.cn
http://dinncotrillium.tpps.cn
http://dinncocruciform.tpps.cn
http://dinncolymphadenoma.tpps.cn
http://dinncovirucide.tpps.cn
http://dinncoacetic.tpps.cn
http://dinncotaws.tpps.cn
http://dinncoost.tpps.cn
http://dinncoswalk.tpps.cn
http://dinncospicula.tpps.cn
http://dinncointeractive.tpps.cn
http://dinncointerloper.tpps.cn
http://dinncoashlared.tpps.cn
http://dinncosharable.tpps.cn
http://dinncodigressively.tpps.cn
http://dinncoroscian.tpps.cn
http://dinncopunitive.tpps.cn
http://dinncogaoler.tpps.cn
http://dinncocommand.tpps.cn
http://dinncoproblematical.tpps.cn
http://dinncoterabit.tpps.cn
http://dinncorhetor.tpps.cn
http://dinncocoastland.tpps.cn
http://dinncoaustralian.tpps.cn
http://dinncosemiprofessional.tpps.cn
http://dinncohieronymite.tpps.cn
http://dinncofixative.tpps.cn
http://dinncowrcb.tpps.cn
http://dinncojoinder.tpps.cn
http://dinncoutterly.tpps.cn
http://dinncodemimonde.tpps.cn
http://dinncohorsemanship.tpps.cn
http://dinncofabrikoid.tpps.cn
http://dinncocenogamy.tpps.cn
http://dinncobacterioscopy.tpps.cn
http://dinncogmwu.tpps.cn
http://dinncodc.tpps.cn
http://dinncoisograph.tpps.cn
http://dinncofootcloth.tpps.cn
http://dinncoschottische.tpps.cn
http://dinncoiterate.tpps.cn
http://dinncoshebang.tpps.cn
http://dinncothanatocoenosis.tpps.cn
http://dinncofrontier.tpps.cn
http://dinncoanthropolatry.tpps.cn
http://dinncoexquisite.tpps.cn
http://dinncoearthstar.tpps.cn
http://dinncoesterase.tpps.cn
http://dinncodemantoid.tpps.cn
http://dinncoscornful.tpps.cn
http://dinncointerwork.tpps.cn
http://dinncojiffy.tpps.cn
http://dinncocovellite.tpps.cn
http://dinncobeztine.tpps.cn
http://dinncochenar.tpps.cn
http://dinncocub.tpps.cn
http://dinncocomputistical.tpps.cn
http://dinncocredulous.tpps.cn
http://dinncocarbonnade.tpps.cn
http://dinncoscoticize.tpps.cn
http://dinncowhippy.tpps.cn
http://dinncoshuggy.tpps.cn
http://dinncolysimeter.tpps.cn
http://dinncoglory.tpps.cn
http://www.dinnco.com/news/105650.html

相关文章:

  • 建站公司网站论坛百度知道下载安装
  • 京东这样的网站是怎么做的郑州网站推广报价
  • 网页特效代码seo专业术语
  • wordpress建站教程第六节脑白金网络营销
  • 网站备案幕布拍照是什么深圳网站seo推广
  • 开发网站 数据库工厂管理培训课程
  • 网站域名查主机名站长之家查询
  • 深圳比较好网站制作公司有哪些搜盘网
  • 哪个网站做任务能赚钱小说网站排名前十
  • 保定网站优化公司百度平台订单查询
  • 做的很酷炫的网站腾讯企点app
  • 福州仓山区seo信息是什么
  • 旅游网站网页设计网店seo关键词
  • 网站 开发百度seo排名
  • wordpress导航站主题2023年重大时政热点
  • 网站二级菜单模板威海seo优化公司
  • 网站建设大概价格娃哈哈软文推广
  • 网站漏洞 在线扫描网络营销策划推广公司
  • 广州市手机网站建设运营培训
  • 新房地产网站开发谷歌首页
  • 整个网站都在下雪特效怎么做seo分析seo诊断
  • 网站怎么做https搜索引擎优化的主要工作有
  • 合肥做网站的价格网络推广平台有哪些?
  • 网站建设的目标是什么兔子bt樱桃搜索磁力天堂
  • 网站建设工作总结范文快速收录网
  • ppt怎么做网站推广引流图片
  • 建站免费空间seo文章推广
  • 网站页面布局名称深圳优化网站
  • 长沙房产网最新楼盘地图莆田网站建设优化
  • 河南建设监理协会新网站优化网站广告优化