码迷,mamicode.com
首页 > 其他好文
【Qt学习笔记】11.自定义控件 Customize the Widget
一、窗口绘制——基本方法自定义窗口:Qt里允许自定义窗口控件,使之满足特殊的要求:1、可以修改其显示,自行绘制2、可以呈现动态效果3、可以添加事件,支持鼠标和键盘操作自定义的控件可以直接在QtDesigner中使用,可以直接加到父窗口里。步骤:1、新建一个类,继承于QWidget..
分类:其他好文   时间:2016-12-13 08:19:36    阅读次数:372
AsyncTask机制详解
AsyncTask是Android提供的一个轻量级异步任务机制,使用AsyncTask可以方便的执行异步任务,并将结果更新到main thread。AsyncTask中是通过Handler机制来让wo...
分类:其他好文   时间:2016-12-13 08:16:56    阅读次数:339
五种常见表达句子间关系的词汇
托福口语句子之间的关系多种多样,常见的有:并列关系、因果关系、递进关系、转折关系和相互解释关系。 Women could and did play a part in this process of settlement. Iceland, for instance, was uninhabited ...
分类:其他好文   时间:2016-12-13 08:17:38    阅读次数:254
Leetcode: Repeated Substring Pattern
这道题应该没法用DP等解,只能brute force 或者 KMP(为深究) KMP解法未研究,https://discuss.leetcode.com/topic/67590/java-o-n ...
分类:其他好文   时间:2016-12-13 08:15:42    阅读次数:187
SourceTree 跳过初始设置
SourceTree 安装之后需要使用账号登陆以授权,以前是可以不登陆的,但是现在是强制登陆。 虽然是免费授权,但是碰上不可抗力因素,登陆不是很方便,这里记录一下跳过这个初始化的步骤。 安装之后,转到用户本地文件夹下的 SourceTree 目录,没有则新建 新建 accounts.json 文件 ...
分类:其他好文   时间:2016-12-13 08:14:12    阅读次数:765
Leetcode 160. Intersection of two linked lists
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in ...
分类:其他好文   时间:2016-12-13 08:14:10    阅读次数:235
Leetcode #1. Two Sum
key: build and search Hash table. following up questions: Overflow value for target? 用Hash table记录之间的状态,思想类似DP def twoSum(nums, target): d = {} n = le... ...
分类:其他好文   时间:2016-12-13 08:15:53    阅读次数:203
Leetcode #167. Two Sum II - Input array is sorted
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function ...
分类:其他好文   时间:2016-12-13 08:15:19    阅读次数:236
[环境搭建] VS-Visual Studio-IIS Express 支持局域网访问
使用Visual Studio开发Web网页的时候有这样的情况:想要在调试模式下让局域网的其他设备进行访问,以便进行测试。虽然可以部署到服务器中,但是却无法进行调试,就算是注入进程进行调试也是无法达到自己的需求;所以只能在Visual Studio-IIS Express 中进行调试。 而于此将会出 ...
分类:其他好文   时间:2016-12-13 08:13:20    阅读次数:202
结构化方法与面向对象方法之应用比较
使用过C语言和Java 的朋友们都知道,这两种语言在编写程序中有着很大的不同。这种不同不仅是语法上面的不同,更是考虑问题角度上的不同。C语言强调解决问题的过程,Java强调描述问题中的对象的属性,二者各有优劣。编写小程序的时候,我们需要根据自己的需求来选择适当的开发方式,编写软件的时候更是如此。在软 ...
分类:其他好文   时间:2016-12-13 08:10:20    阅读次数:171
Leetcode #2 Add two number
Q: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sing ...
分类:其他好文   时间:2016-12-13 08:10:34    阅读次数:148
Arduino 翻译系列 - LED 灯闪烁
原文地址 - https://www.arduino.cc/en/Tutorial/Blink 闪烁 这个例子展示了你能拿 Arduino / Genuino 板子来干的最简单的事:使开发板上的 LED 灯闪烁。 硬件需求 Arduino 开发板 LED (非必要) 220欧电阻(非必要) 电路 这... ...
分类:其他好文   时间:2016-12-13 08:08:29    阅读次数:663
天天代码
1 2 3 4 5 Document 6 30 31 32 33 显示或隐藏 34 关闭窗口 35 打开新窗口 36 37 1 2 3 4 5 Document 6 11 23 24 25 创建标签 26 27 1 2 ... ...
分类:其他好文   时间:2016-12-13 08:08:08    阅读次数:150
Leetcode #5. Longest Palindromic Substring
Q: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lon... ...
分类:其他好文   时间:2016-12-13 08:08:14    阅读次数:143
Leetcode: Assign Cookies
Solution 1: Greedy, Time:O(nlogn) Just assign the cookies starting from the child with less greediness to maximize the number of happy children . Solu ...
分类:其他好文   时间:2016-12-13 08:08:01    阅读次数:171
mui框架中底部导航的跳转2
接上一篇 还有一种方法就是在一心得页面中打开我们所需要的网页 代码如下: 向新的的页面穿值: 获取到新页面上的值: ...
分类:其他好文   时间:2016-12-13 08:06:35    阅读次数:117
后台管理界面自己写,模仿,更新中...
1.一个header和footer 和一个登陆modal框: css代码: 效果: modal框: 后面有学习到信的东西在更新》。。 ...
分类:其他好文   时间:2016-12-13 08:04:26    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!