上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: public Transform pos; public Transform pos1; public float value = 0; public float value1 = 0; //坐标和值 // Update is called once per frame void Update() 阅读全文
posted @ 2020-05-25 00:46 手札记 阅读(1420) 评论(0) 推荐(0)
摘要: 第一 计算两点之间的距离或者向量的长度 float dis = (transform.position - player.position).sqrMagnitude 第二 绝对值 Mathf.Abs(); 第三 匀速移动 Vector3.MoveTowards(); 阅读全文
posted @ 2020-05-25 00:37 手札记 阅读(571) 评论(0) 推荐(0)
摘要: /// <summary> /// 获取鼠标点击坐标 /// </summary> Vector3 screenPosition;//将物体从世界坐标转换为屏幕坐标 Vector3 mousePositionOnScreen;//获取到点击屏幕的屏幕坐标 Vector3 mousePositionI 阅读全文
posted @ 2020-05-24 11:21 手札记 阅读(3561) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/yj_android_develop/article/details/83478200 QT信号槽connect函数详解 http://www.liangxu.co/ https://leetcode-cn.com/problemset/algorithm 阅读全文
posted @ 2020-05-14 16:47 手札记 阅读(143) 评论(0) 推荐(0)
摘要: 添加鼠标点击事件 void mouseMoveEvent(QMouseEvent *event); void mousePressEvent(QMouseEvent *event); QPoint m_startPoint; QPoint m_windowPoint;头文件 #include <Qt 阅读全文
posted @ 2020-05-13 14:39 手札记 阅读(809) 评论(0) 推荐(0)
摘要: 第1——关闭软件 QApplication* app; app->quit(); 第2——键盘事件 void MainWindow::keyPressEvent(QKeyEvent *event){ if( event->key()==Qt::Key_Exclam){ qDebug()<<"点击"; 阅读全文
posted @ 2020-05-13 13:44 手札记 阅读(141) 评论(0) 推荐(0)
摘要: 首先需要一个可被访问的图标 参数图标添加 mainwindow.cpp 在这个文件中添加代码 QIcon icon(":/Dm7.ico"); systemTray = new QSystemTrayIcon(this); systemTray->setIcon(icon); systemTray- 阅读全文
posted @ 2020-05-12 11:29 手札记 阅读(256) 评论(0) 推荐(0)
摘要: 鼠标事件 void mousePressEvent(QMouseEvent *event); //单击 void mouseReleaseEvent(QMouseEvent *event); //释放 void mouseDoubleClickEvent(QMouseEvent *event); / 阅读全文
posted @ 2020-05-07 11:17 手札记 阅读(594) 评论(0) 推荐(0)
摘要: 创建一个工程 一个图标 一个文件 开始 添加这个 添加一个前缀和一个文件 在ICON.pro文件中添加 RC_FILE=icon.rc就是这个文件 这个文件中 IDI_ICON1 ICON "Dm7.ico"添加图片名字 这样就有了,文件,图片文件,项目管理中有了这文件和图片文件, 这样就能索引到 阅读全文
posted @ 2020-05-04 17:08 手札记 阅读(196) 评论(0) 推荐(0)
摘要: ctrl+a 全选 ctrl+i 对齐 F4 切换头文件 阅读全文
posted @ 2020-05-04 14:56 手札记 阅读(172) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页