码迷,mamicode.com
首页 >  
搜索关键字:qt quick example    ( 27971个结果)
LeetCode 796. Rotate String
原题链接在这里:https://leetcode.com/problems/rotate-string/ 题目: We are given two strings, A and B. A shift on A consists of taking string A and moving the le ...
分类:其他好文   时间:2020-03-21 14:31:02    阅读次数:42
用事件队列解决QT GUI的操作顺序问题
原文: https://www.cnblogs.com/Philip Tell Truth/p/6295186.html GUI操作顺序问题引发异常 有时候我们使用写GUI程序的时候会遇到这样的问题:比如在程序中,建立了一个列表的GUI。这个列表是随着时间不断更新的,而且操作也会读取这个列表GUI的 ...
分类:其他好文   时间:2020-03-21 09:18:39    阅读次数:77
Qt发送事件与自定义事件
发送事件 主要函数: bool QCoreApplication::sendEvent ( QObject *receiver, QEvent * event ) void QCoreApplication::postEvent ( QObject *receiver, QEvent * event ...
分类:其他好文   时间:2020-03-20 23:59:19    阅读次数:119
java static
1. static关键字修饰变量 被static修饰的成员变量叫做静态变量,也叫做类变量,说明这个变量是属于这个类的,而不是属于是对象, 没有被static修饰的成员变量叫做实例变量,说明这个变量是属于某个具体的对象的。 public class Example{ private static in ...
分类:编程语言   时间:2020-03-20 21:54:29    阅读次数:59
[LeetCode] 230. Kth Smallest Element in a BST
二叉搜索树中第K小的元素。题目即是题意。例子, Example 1: Input: root = [3,1,4,null,2], k = 1 3 / \ 1 4 \ 2 Output: 1 Example 2: Input: root = [5,3,6,2,4,null,null,1], k = 3 ...
分类:其他好文   时间:2020-03-20 09:21:35    阅读次数:64
[LeetCode] 671. Second Minimum Node In a Binary Tree
二叉树中第二小的节点。给定一个非空特殊的二叉树,每个节点都是正数,并且每个节点的子节点数量只能为 2 或 0。如果一个节点有两个子节点的话,那么这个节点的值不大于它的子节点的值。给出这样的一个二叉树,你需要输出所有节点中的第二小的值。如果第二小的值不存在的话,输出 -1 。例子, Example 1 ...
分类:其他好文   时间:2020-03-20 09:13:57    阅读次数:60
6. 快速排序
思想 快速排序,是选取一个元素,然后经过交换元素,保证选定元素的左边都小于它,右边元素都大于它。每次操作后,选定元素的位置就是排序后的位置。 就像多个人进行高矮个排列一样,你看了下,前面的人都比你矮,后面的人都比你高,那么你就可以不动了,随他们怎么折腾,反正你站的位置对了,他们排序好了,你也还是站在 ...
分类:编程语言   时间:2020-03-20 00:32:40    阅读次数:73
PTA(Advanced Level)1015.Reversible Primes
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:其他好文   时间:2020-03-19 22:04:02    阅读次数:72
jsonnet,就这么神奇
既然要玩kube-prometheus, jsonnet,也附带着玩玩啦。。 https://jsonnet.org/learning/tutorial.html 我用的是Golang来玩的,不是C++版本的。 https://github.com/google/go-jsonnet example ...
分类:Web程序   时间:2020-03-19 21:35:45    阅读次数:91
Android连接MySQL
导包: 1.在main目录下新建文件夹libs,将自己的jar包复制进入,然后右键选择 Add As Library 进行导入; 项目结构: 相关源码: DBOpenHelper.java: package com.example.myapplication; import java.sql.Con ...
分类:移动开发   时间:2020-03-19 21:22:26    阅读次数:94
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!