Kimtaikee House

技以惠世

http://www.qtcn.org/bbs/u/77767  [收藏] [复制]

kimtaikee

勇往直前

  • 9

    关注

  • 210

    粉丝

  • 2922

    访客

  • 等级:精灵王
  • 身份:内测会员
  • 总积分:1171
  • 男,1912-01-01
  • Beijing

最后登录:2019-11-20

更多资料

更多 留言板

 

hamixixigua:快搭建 https://www.kuaidajian.com 招标式软件开发服务平台!(找软件开发公司不会被坑)

2019-03-23 18:59 -

ditieshijian:你应该关注一下  http://www.ditieshijian.com/  地铁时间

2014-07-10 19:09 -

个人标签

更多 日志

convert qcolor to qgradient

code picked from QtCharts

QList<QGradient> ChartThemeManager::generateSeriesGradients(const QList<QColor>& colors)
{
QList<QGradient> result;
// Generate gradients in HSV color space
foreach (const QColor &color, colors) {
QLinearGradient g;
qreal h = color.hsvHueF();
..
阅读全文»

本职 - 2016-07-06 15:03
vtkTextActor display Chinese characters

m_textActor = vtkTextActor::New();
m_textActor->GetTextProperty()->SetFontFamily(VTK_FONT_FILE);
m_textActor->GetTextProperty()->SetFontSize(20);
m_textActor->GetTextProperty()->SetFontFile("E:/minisong.ttf"); // google a Chinese font file, then use it


vtkUnicodeString unistr = vtkUnicodeString::from_utf8(text.toStdString());
& ..
阅读全文»

VTK - 2016-06-24 14:09
jQuery Tricks

1. Prevent page from zooming
$(document).keydown(function(event) {
if (event.ctrlKey==true && (event.which == '61' || event.which == '107' || event.which == '173' || event.which == '109' || event.which == '187' || event.which == '189' ) ) {
event.preventDefault();
}
// 107 Num Key +
& ..
阅读全文»

WEB DEV - 2016-04-07 08:52
CSS Tricks

1. Zoom in image within div
.case-img-wrapper
{
overflow: hidden;
}
.case-img-wrapper img
{
-moz-transition: all .5s;
-webkit-transition: all .5s;
transition: all .5s;
-moz-transform: scale(1,1);
-webkit-transform: scale(1,1);
transform: scale(1,1);
}
.case-img-wrapper:hover img {
-moz-transform: s ..
阅读全文»

WEB DEV - 2016-03-17 10:26
jQuery: test element's visibility

function isElementVisible(selector) {
var viewportWidth = $(window).width();
var viewportHeight =$(windwo).height();
var documentScrollTop = $(document).scrollTop();
var documentScrollLeft = $(document).scrollLeft();
var minTop = documentScrollTop;
var maxTop = documentScrollTop + viewportHeight;
var minLeft = documentScrollLeft;
var maxLeft = documentScrollLeft + viewportWidth;
var ..
阅读全文»

WEB DEV - 2016-03-10 13:33
Use jQuery 3D Plugin jR3DCarousel

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery jR3DCarousel Plugin Demo</title>
<!-- <link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css"> -->
<style>
..
阅读全文»

默认分类 - 2016-03-07 21:39
jQuery code snippets

1. Get viewport's width & height
复制代码var wid = $(window).width();
var hei = $(window).height();
event:
复制代码$(window).resize(function() {
});
2. Custom animation.
复制代码var imageViewer = $(‘#image-viewer');imageViewer.animate({'margin': '200px'}, 'slow');
3. Scroll top
复制代码$('#whateverContainer').animate({'scrollTop': 0}, 'fast'); // fast, slow
4. Scrollbar visibility
overflow: auto; / ..
阅读全文»

WEB DEV - 2016-03-05 07:56
Align html element horizontally & vertically center inside another element

See the image 阅读全文»

WEB DEV - 2016-03-02 10:10
Another way to align 3 divs within another div

html code:
复制代码<div id="container">
<div>One</div>
<div>Two</div>
<div>Three</div>
</div>

CSS:


#container {
display: flex;
justify-content: space-between;
}


#container > div {
width: 100px;
height: 100px;
border-style: solid;
border-col ..
阅读全文»

WEB DEV - 2016-02-28 22:58
【GO】 Using MySQL

install package
go get github.com/go-sql-driver/mysql

using MySQL


package main


import "fmt"
import "database/sql"
import _ "github.com/go-sql-driver/mysql"


func checkErr(err error) {
if err != nil {
panic(err)
}
}


func main() {
db, err := sql.Open("mysql", "user:password@/dbname")
checkErr(err)

rows, err := db.Query("SELECT * FROM ..
阅读全文»

GO - 2016-02-04 21:40

更多 朋友

离线 morriszy

細節決定成敗

离线 jetlee2012

离线 kid_boy

离线 永恒国度

离线 longteng9

Low-key, choice, there will be

最近访客

Powered by phpwind v8.7 Certificate Copyright Time now is:12-09 05:11
©2005-2016 QTCN开发网 版权所有 Gzip disabled

-->