- 博客(0)
- 资源 (11)
- 收藏
- 关注
区块链源码,Openchain
"enable_transaction_stream": true,
"storage": {
"provider": "SQLite",
"path": "ledger.db"
},
// Define transaction validation parameters
"validator_mode": {
// Required: A random string used to generate the chain namespace
"instance_seed": "",
"validator": {
"provider": "PermissionBased",
// Enable /p2pkh/<address>/ accounts
"allow_p2pkh_accounts": true,
// Enable /asset/p2pkh/<address>/ accounts
"allow_third_party_assets": true,
// Base-58 addresses that must have admin rights
"admin_addresses": [
],
"version_byte": 76
}
},
// Uncomment this and comment the "validator_mode" section to enable observer mode
// "observer_mode": {
// "upstream_url": ""
// },
2018-05-23
QSS精美界面实例
比较漂亮的实例
#include "iconhelper.h"
IconHelper* IconHelper::_instance = 0;
IconHelper::IconHelper(QObject*):
QObject(qApp)
{
int fontId = QFontDatabase::addApplicationFont(":/image/fontawesome-webfont.ttf");
QString fontName = QFontDatabase::applicationFontFamilies(fontId).at(0);
iconFont = QFont(fontName);
}
void IconHelper::SetIcon(QLabel* lab, QChar c, int size)
{
iconFont.setPointSize(size);
lab->setFont(iconFont);
lab->setText(c);
}
void IconHelper::SetIcon(QPushButton* btn, QChar c, int size)
{
iconFont.setPointSize(size);
btn->setFont(iconFont);
btn->setText(c);
}
2018-05-20
最长的一帧-学习osg必看
这是一篇有关 OpenSceneGraph 源代码的拙劣教程,没有任何能赏心悦目的小例子,也 不会贡献出什么企业级的绝密的商业代码,标题也只是个噱头(坏了,没人看了^_^)。 本文写作的目的说来很简单,无非就是想要深入地了解一下,OSG 在一帧时间,也就 是仿真循环的一个画面当中都做了什么。 对 OSG 有所了解之后,我们也许可以很快地回答这个问题,正如下面的代码所示: while (!viewer.done()) viewer.frame();
2018-05-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人