Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
<irony>Отсутствие комментариев, как отсутствие вопросов после лекции, говорит о том, что, либо совсем ничего не понятно, либо, наоборот, всё понятно. Надеюсь здесь второй вариант: о)
KDPropertyView is an model/view based viewer/ editor for key/value properties. The basic type of a property is QVariant. Additional display/edit information like minimum- and maximum-values, lists of options, and input masks can be communicated to the view via the model. Composite properties are supported (for example a ”Size” property might be composed of a height and width). A number of editors are included in KDTools, but the system can easily be extended via delegates and custom editors that plug into KDPropertyView.
QtnPropertySetText textParams;
QScriptEngine eng;
eng.globalObject().setProperty("textParams", eng.newQObject(&textParams));
QScriptValue val = eng.evaluate("textParams.Tabulation.tabSize.isEditable");
Q_ASSERT(val.toBool(), false);
eng.evaluate("textParams.Tabulation.replaceWithSpaces.value = true");
QScriptValue val = eng.evaluate("textParams.Tabulation.tabSize.isEditable");
Q_ASSERT(val.toBool(), true);
Properties framework для Qt