首先需要的软件:1.MinGW-gcc440_1.zip2.qt-win-opensource-4.8.5-mingw.exe3.qt-creator-win-opensource-2.8.1.exe步骤:1.解压缩MinGW-gcc440_1到目录D:\Qt\MinGW-gcc440_12.安装q...
分类:
其他好文 时间:
2014-05-20 02:34:23
阅读次数:
525
intdelayTime=3;QElapsedTimer
timer;timer.start();while(timer.elapsed()<(delayTime*1000)){app.processEvents();}
分类:
其他好文 时间:
2014-05-17 17:45:54
阅读次数:
209
/** * Schedule a countdown until a time in the
future, with regular notifications on intervals along the way. * * Example of
showing a 30 second count...
分类:
其他好文 时间:
2014-05-16 04:21:02
阅读次数:
311
有时候我们做软件,需要在QWebView 中放一个地图之类的东西,需要让QWebView
随着窗口的大小而自动调节。要实现这个功能不需要动用代码,用布局可以搞定。用代码如何搞定,我不会,也没去研究。第一步,打开mainwindow.ui,在“设计”模式下,找到右侧QMainWindow,
点右键,选...
分类:
Web程序 时间:
2014-05-16 03:29:18
阅读次数:
585
Given an unsorted integer array, find the first
missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1]
return 2.Your algorithm sho...
分类:
其他好文 时间:
2014-05-16 02:58:54
阅读次数:
249
问题:当你的导航在TabActivity中 而子页面的一个按钮需要切换到其中的某一个导航页面
转载请注明出处:http://blog.csdn.net/x605940745
demo下载地址:http://download.csdn.net/detail/x605940745/7353695
package com.example.shows;
import android.app....
分类:
其他好文 时间:
2014-05-16 01:32:08
阅读次数:
299
Given a string, find the length of the longest
substring without repeating characters. For example, the longest substring
without repeating letters fo...
分类:
其他好文 时间:
2014-05-15 17:50:38
阅读次数:
298
Given two binary strings, return their sum
(also a binary string).For example, a = "11" b = "1" Return "100".string
的操作,短string补位。两个“0”会输出一个“00”,要特殊处理...
分类:
其他好文 时间:
2014-05-15 17:47:57
阅读次数:
283
send($data)`. The sent data will then* be the
result of the `yield` expression. Thus it can be received using a code like*
`$data = yield;`.*/ /* What...
分类:
其他好文 时间:
2014-05-15 17:46:37
阅读次数:
311
QML与C++交互:在qml中使用QSqlQueryModel显示数据库数据
本文博客链接:http://blog.csdn.net/jdh99,作者:jdh,转载请注明.
参考链接:
http://qt-project.org/wiki/How_to_use_a_QSqlQueryModel_in_QML
环境:
主机:WIN7
开发环境:...
分类:
数据库 时间:
2014-05-15 13:07:37
阅读次数:
404