码迷,mamicode.com
首页 > 2014年11月21日 > 全部分享
Qt5的插件机制(4)--Qt插件的元信息metaData
JSON 与Qt插件的元信息 MetaData Qt插件的源码中,基本都能见到一个 xxx.json 的文件,这个文件中通常只包含一句: {     "Keys": [ "yyy" ] } 我们可以猜到这个文件中的"Keys"应该是指定了与插件相关的关键字。那这个 .json 文件到底是如何起作用的? 先来认识一下 JSON . JSON是一种存储结构化数据的格式,它...
分类:Web程序   时间:2014-11-21 06:57:40    阅读次数:329
Qt5的插件机制(6)--开发Qt插件时几个重要的宏
如何开发Qt插件,可以在Qt Assistant 中搜索"Qt Plugins"或"How to Create Qt Plugins",看看那篇manual中的介绍。 其中涉及到了几个宏 Q_DECLARE_INTERFACE( ClassName, Identifier) This macro associates the given Identifier (a string li...
分类:其他好文   时间:2014-11-21 06:59:25    阅读次数:195
VBA的inputBox函数的JScript模拟
本文要点: 示例WScript.CreateObject的事件前缀绑定事件处理过程示例InternetExplorer.Application在JScript下来模仿inputBox函数示例JScript脚本宿主运行时访问页面内容、脚本的方法。 估计这文章一发表就注定被转抄的命运了,标记一下源地址: /* Tips: an alert emulator for Wscript...
分类:编程语言   时间:2014-11-21 06:58:58    阅读次数:293
Qt5的插件机制(7)--插件开发示例代码(Lower-level API)
插件代码 接口类头文件 MyPluginInterface.h #ifndef INTERFACES_H #define INTERFACES_H #include #define QtPluginDemo_iid "org.qt-project.Qt.PluginDemo" class MyPluginInterface { public: virtual int add(int,...
分类:Windows程序   时间:2014-11-21 07:00:04    阅读次数:428
Qt Quick实现的涂鸦程序
实现自己的Qt Quick元素,使用QPainter绘图……...
分类:其他好文   时间:2014-11-21 06:57:36    阅读次数:273
Valid Password
ProblemIn 1-9 keypad one key is not working. If someone enters a password then not working key will not be entered. You have given expected password a...
分类:其他好文   时间:2014-11-21 06:58:11    阅读次数:197
Leetcode-Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:"((...
分类:其他好文   时间:2014-11-21 06:58:22    阅读次数:262
Leetcode-Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeate...
分类:其他好文   时间:2014-11-21 06:57:28    阅读次数:212
Leetcode-Combinations Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each numb...
分类:其他好文   时间:2014-11-21 06:57:39    阅读次数:184
Well-ordered String
ProblemYou know a password is well-ordered string. Well-ordered string means that the order of the characters is in an alphabetical increasing order. ...
分类:其他好文   时间:2014-11-21 06:55:50    阅读次数:137
Tic Tac Toe
ProblemN*N matrix is given with input red or black.You can move horizontally, vertically or diagonally. If 3 consecutive samecolor found, that color w...
分类:其他好文   时间:2014-11-21 06:56:50    阅读次数:291
Leetcode-Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-11-21 06:56:07    阅读次数:122
Leetcode-Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your al...
分类:其他好文   时间:2014-11-21 06:55:40    阅读次数:187
Telephone Number
ProblemPrint all valid phone numbers of length n subject to following constraints:If a number contains a 4, it should start with 4No two consecutive d...
分类:其他好文   时间:2014-11-21 06:54:39    阅读次数:149
Leetcode-Search for a range
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:其他好文   时间:2014-11-21 06:57:04    阅读次数:155
模板与继承之艺术——命名模板参数
许多模板技术拖着一长串的类型参数,不过很多参数都设有合理的缺省值。 template class BreadSlicer{}; 但是如果我们需要指定某个非缺省实参,还必须明确的指定在它之前的所有实参,即使这些实参跟默认参数一致。 BreadSlicer
分类:其他好文   时间:2014-11-21 06:55:08    阅读次数:186
javascript之this
最近要用nodejs写点东西,发现对javascript不是很了解,那就开始学吧。 javascript中的this感觉挺奇怪的,在某些情况下this代表的是当前对象,但在另外一些情况下,this又代表的是当前文件,那么究竟是为什么呢? javascript中相同的方法在不同的环境中,thi...
分类:编程语言   时间:2014-11-21 06:54:57    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!