摘要: 插件列表: code --install-extension abusaidm.html-snippetscode --install-extension akamud.vscode-javascript-snippet-packcode --install-extension christian- 阅读全文
posted @ 2021-06-30 22:05 GongKiro 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1. 新建templateDiv的文件夹 新建文件 templateDiv.vue <template> <div class="templateDiv"> <div @click="emitToParent(1)">Hello, {{fromParent}} </div> </div> </tem 阅读全文
posted @ 2021-01-08 10:59 GongKiro 阅读(139) 评论(0) 推荐(0) 编辑
摘要: .title { height: auto !important; } .tabs-and-actions-container { display: block !important; height: auto !important; } .tabs-and-actions-container .m 阅读全文
posted @ 2020-12-30 10:48 GongKiro 阅读(2676) 评论(0) 推荐(0) 编辑
摘要: 1.反转整个链表 ListNode* reverseBetween(ListNode* head, int m, int n) { if (m == n || head == NULL || head->next == NULL) return head; ListNode* pre = NULL; 阅读全文
posted @ 2020-09-18 17:40 GongKiro 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 5. 最长回文子串 给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为 1000。 示例 1: 输入: "babad"输出: "bab"注意: "aba" 也是一个有效答案。示例 2: 输入: "cbbd"输出: "bb" 来源:力扣(LeetCode)链接:https:/ 阅读全文
posted @ 2020-09-09 10:01 GongKiro 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 28.实现 strStr() 函数。 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 -1。 示例 1: 输入: haystack = "hello", needle = "l 阅读全文
posted @ 2020-09-03 10:46 GongKiro 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1. 通过文件路径读取 1.1设置import path main.cpp qputenv("QML2_IMPORT_PATH", "../qml1"); //或者 //engine.addImportPath("../qml1/"); 1.2 添加file:调用 Image { id: names 阅读全文
posted @ 2020-08-10 18:43 GongKiro 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 1.增加自定义控件myButton.qml import QtQuick 2.8 import QtQuick.Controls 2.5 Rectangle { id:myButton width: 140 height: 40 color : "#E0E0E0" //设置边框的大小和颜色,倒角 b 阅读全文
posted @ 2020-07-27 22:33 GongKiro 阅读(959) 评论(0) 推荐(0) 编辑
摘要: 总所周知,逻辑是要和界面分开的 1. 创建继承QObject的类 右键工程/add new/C++/C++ class/ 选择base class为:QObject 取名:Gemini 随便吧 2. 创建信号和槽 signal:begin() 槽:doSomething() 槽必须是protecte 阅读全文
posted @ 2020-07-24 23:09 GongKiro 阅读(796) 评论(0) 推荐(0) 编辑
摘要: 1. erase 很多时候,我在删除vector元素的时候使用的是遍历指针,符合条件时使用erase删除, 可是这样的使用办法会有个问题,在vec.erase(iter)后,需要使用erase的返回值,并且这个返回值是等价iter++,也就是iter的下一个元素, 否则的话,iter将会是个无效指针 阅读全文
posted @ 2020-07-03 10:23 GongKiro 阅读(888) 评论(0) 推荐(0) 编辑