一、效果展示 今儿来分析一篇常见的ui布局,完全使用qml编写,ui交互效果友好,如图1所示,是一个常见的客户端新闻展示效果,左侧是一个列表,右侧是新闻详情。 图1 新闻效果图 二、源码分析 首先先来总体分析下该示例代码的工程目录,如图2所示,总共有6个qml文件。其中BusyIndicator和组 ...
分类:
其他好文 时间:
2017-03-14 20:26:27
阅读次数:
435
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> #div1{ width: 192px; height: 120px; border: 1px solid gray; mar ...
分类:
其他好文 时间:
2017-03-11 20:33:10
阅读次数:
146
1.运行结果: 2.代码 main.cpp constantDialog.h constantDialog.cpp ...
分类:
其他好文 时间:
2017-03-10 13:16:11
阅读次数:
255
import scipy.misc import matplotlib.pyplot as plt lena = scipy.misc.face() plt.gray() plt.imshow(lena) plt.colorbar() print lena.shape print lena.max(... ...
分类:
其他好文 时间:
2017-03-01 16:26:18
阅读次数:
209
背景常见样式: width:600px; height:800px; background: url(bg.jpg) no-repeat 40px 20px fixed gray ; ********************************************************** ...
分类:
Web程序 时间:
2017-02-26 19:21:27
阅读次数:
155
High Level Consumer 很多时候,客户程序只是希望从Kafka读取数据,不太关心消息offset的处理。同时也希望提供一些语义,例如同一条消息只被某一个Consumer消费(单播)或被所有Consumer消费(广播)。因此,Kafka High Level Consumer提供了一个 ...
分类:
其他好文 时间:
2017-02-26 10:43:28
阅读次数:
348
require(grDevices) # for coloursx <- y <- seq(-4*pi, 4*pi, len = 27)r <- sqrt(outer(x^2, y^2, "+"))image(z = z <- cos(r^2)*exp(-r/6), col = gray((0:32 ...
分类:
其他好文 时间:
2017-02-24 12:18:35
阅读次数:
240
- (void)viewDidLoad { [super viewDidLoad]; //初始化BMKLocationService _locService = [[BMKLocationService alloc]init]; _locService.delegate = self; //启动Lo ...
分类:
其他好文 时间:
2017-02-23 18:35:36
阅读次数:
263