C++ 应用框架 Softbloks

码农软件 · 软件分类 · 常用工具包 · 2019-08-14 22:28:55

软件介绍

Softbloks 是一款免费的跨平台的应用框架,为开发者提供一个有效的开发模式,自下而上或者自上而下,提高开发效率。

示例代码:

class MainObject : public sb::AbstractSoft
{
    public:
    MainObject()
    {
        // 1) register the property Qt.mainview in read-only mode
        // - the method get_widget is passed as reading accessor (std::bind is
        //   used to convert the method into a std::function bound to this)
        // - empty value (nullptr) is passed as writing accessor
        this->register_property<QWidget*>(
            "Qt.mainview",
            sb::READ_ONLY,
            std::bind(&MySoft::get_widget, this),
            nullptr
        );
    }
    QWidget* get_widget()
    {
        return new QLabel("Hello World!!!");
    }
};
SB_DECLARE_CLASS(
    MainObject,
    "MainObject",
    sb::AbstractSoft
)
// 2) declare the properties of the class
SB_DECLARE_PROPERTIES(
    MainObject,
    {"Qt.mainview", {typeid(QWidget*), sb::READ_ONLY}}
)
SB_DECLARE_MODULE(/*a description should go here*/)
{
    sb::register_object<MainObject>();
}

本文地址:https://codercto.com/soft/d/12382.html

Google's PageRank and Beyond

Google's PageRank and Beyond

Amy N. Langville、Carl D. Meyer / Princeton University Press / 2006-7-23 / USD 57.50

Why doesn't your home page appear on the first page of search results, even when you query your own name? How do other web pages always appear at the top? What creates these powerful rankings? And how......一起来看看 《Google's PageRank and Beyond》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具