上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 294 下一页
摘要: 给你一个类: public class Foo { public void first() { print("first"); } public void second() { print("second"); } public void third() { print("third"); } } 阅读全文
posted @ 2022-05-18 09:01 我不是萧海哇~~~ 阅读(48) 评论(0) 推荐(0)
摘要: 1、代码 #ifdef _WIN64 qDebug()<<64; #else qDebug()<<32; #endif 2、注意 _WIN64只有在64位程序上才被定义; _WIN32在64和32位程序上都会被定义 阅读全文
posted @ 2022-05-17 21:38 我不是萧海哇~~~ 阅读(288) 评论(0) 推荐(0)
摘要: 不好理解 class Solution { public: int countSubstrings(string s) { int n = s.size(), sum = 0; for(int i = 0; i < n*2-1; i++) { int l = i / 2, r = i/2 + i%2 阅读全文
posted @ 2022-05-17 16:14 我不是萧海哇~~~ 阅读(28) 评论(0) 推荐(0)
摘要: 原文:https://beondxin.blog.csdn.net/article/details/98480663 临时有需求写些小的任务,比如文件流操作,图片加水印等完成快速部署,或者比较大的项目,编译速度过慢,这时就需要设置预编译。建完新工程实现快速部署和编译。 qt使用预编译只需要在.pro 阅读全文
posted @ 2022-05-17 15:56 我不是萧海哇~~~ 阅读(212) 评论(0) 推荐(0)
摘要: 原文:https://beondxin.blog.csdn.net/article/details/100173606 看到一个不错的文字和图片对应起来的方式,记录下 给每个item传入QtUserRole item->setData(QtUserRole, i.key()); 根据 item->d 阅读全文
posted @ 2022-05-17 15:48 我不是萧海哇~~~ 阅读(184) 评论(0) 推荐(0)
摘要: 原文:https://editor.csdn.net/md?articleId=124823144 图像处理一般都是在opencv/vtk/itk/halcon里做的,qt用来显示 偶尔有很简单图像操作小需求,调用第三方库很麻烦,我这里记录下自己每次有需要临时写的 单纯qt对像素的操作简单的图像处理 阅读全文
posted @ 2022-05-17 15:46 我不是萧海哇~~~ 阅读(298) 评论(0) 推荐(0)
摘要: https://github.com/Greedysky/TTKWidgetTools 研究网上别人代码,看到一个可能以后会用的功能 弹出一个label 过段时间自动淡淡退出 先自定义一个label // 设置背景 setWindowFlags(Qt::Window | Qt::FramelessW 阅读全文
posted @ 2022-05-17 15:44 我不是萧海哇~~~ 阅读(230) 评论(0) 推荐(0)
摘要: 给你一个由一些多米诺骨牌组成的列表 dominoes。 如果其中某一张多米诺骨牌可以通过旋转 0 度或 180 度得到另一张多米诺骨牌,我们就认为这两张牌是等价的。 形式上,dominoes[i] = [a, b] 和 dominoes[j] = [c, d] 等价的前提是 ac 且 bd,或是 a 阅读全文
posted @ 2022-05-16 22:32 我不是萧海哇~~~ 阅读(25) 评论(0) 推荐(0)
摘要: 给你两个数组,arr1 和 arr2,arr2 中的元素各不相同,arr2 中的每个元素都出现在 arr1 中。 对 arr1 中的元素进行排序,使 arr1 中项的相对顺序和 arr2 中的相对顺序相同。未在 arr2 中出现过的元素需要按照升序放在 arr1 的末尾。 示例 1: 输入:arr1 阅读全文
posted @ 2022-05-16 21:51 我不是萧海哇~~~ 阅读(80) 评论(0) 推荐(0)
摘要: 给你一个字符串 text,你需要使用 text 中的字母来拼凑尽可能多的单词 "balloon"(气球)。 字符串 text 中的每个字母最多只能被使用一次。请你返回最多可以拼凑出多少个单词 "balloon"。 示例 1: 输入:text = "nlaebolko" 输出:1 示例 2: 输入:t 阅读全文
posted @ 2022-05-16 15:49 我不是萧海哇~~~ 阅读(33) 评论(0) 推荐(0)
上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 294 下一页