当前位置: 首页>>代码示例>>C++>>正文


C++ QScriptValue::toQObject方法代码示例

本文整理汇总了C++中QScriptValue::toQObject方法的典型用法代码示例。如果您正苦于以下问题:C++ QScriptValue::toQObject方法的具体用法?C++ QScriptValue::toQObject怎么用?C++ QScriptValue::toQObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在QScriptValue的用法示例。


在下文中一共展示了QScriptValue::toQObject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: QStackedWidgetfromScriptValue

void QStackedWidgetfromScriptValue(const QScriptValue &obj, QStackedWidget* &item)
{
  item = qobject_cast<QStackedWidget*>(obj.toQObject());
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:4,代码来源:qstackedwidgetproto.cpp

示例2: fileDialogProxyFromQScriptValue

void fileDialogProxyFromQScriptValue(const QScriptValue &scriptValue, FileDialogProxyPtr &fd)
{
    QObject *obj = scriptValue.toQObject();
    fd = static_cast<FileDialogProxy *>(obj);
}
开发者ID:KDE,项目名称:kde-runtime,代码行数:5,代码来源:filedialogproxy.cpp

示例3: MenuButtonfromScriptValue

void MenuButtonfromScriptValue(const QScriptValue &obj, MenuButton* &item)
{
  item = qobject_cast<MenuButton*>(obj.toQObject());
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:4,代码来源:menubutton.cpp

示例4: qtscript_QThreadPool_fromScriptValue

static void qtscript_QThreadPool_fromScriptValue(const QScriptValue &value, QThreadPool* &out)
{
    out = qobject_cast<QThreadPool*>(value.toQObject());
}
开发者ID:DanielJSlick,项目名称:qcad,代码行数:4,代码来源:qtscript_QThreadPool.cpp

示例5: qtscript_QWebPluginFactory_fromScriptValue

static void qtscript_QWebPluginFactory_fromScriptValue(const QScriptValue &value, QWebPluginFactory* &out)
{
    out = qobject_cast<QWebPluginFactory*>(value.toQObject());
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:4,代码来源:qtscript_QWebPluginFactory.cpp

示例6: qtscript_QDateTimeEdit_fromScriptValue

static void qtscript_QDateTimeEdit_fromScriptValue(const QScriptValue &value, QDateTimeEdit* &out)
{
    out = qobject_cast<QDateTimeEdit*>(value.toQObject());
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:4,代码来源:qtscript_QDateTimeEdit.cpp

示例7: qtscript_QTranslator_fromScriptValue

static void qtscript_QTranslator_fromScriptValue(const QScriptValue &value, QTranslator* &out)
{
    out = qobject_cast<QTranslator*>(value.toQObject());
}
开发者ID:Jackieee,项目名称:qcad,代码行数:4,代码来源:qtscript_QTranslator.cpp

示例8: QGridLayoutfromScriptValue

void QGridLayoutfromScriptValue(const QScriptValue &obj, QGridLayout* &item)
{
  item = qobject_cast<QGridLayout*>(obj.toQObject());
}
开发者ID:Wushaowei001,项目名称:xtuple-1,代码行数:4,代码来源:qgridlayoutproto.cpp

示例9: qtscript_QDrag_fromScriptValue

static void qtscript_QDrag_fromScriptValue(const QScriptValue &value, QDrag* &out)
{
    out = qobject_cast<QDrag*>(value.toQObject());
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:4,代码来源:qtscript_QDrag.cpp

示例10: qtscript_QStylePlugin_fromScriptValue

static void qtscript_QStylePlugin_fromScriptValue(const QScriptValue &value, QStylePlugin* &out)
{
    out = qobject_cast<QStylePlugin*>(value.toQObject());
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:4,代码来源:qtscript_QStylePlugin.cpp

示例11: qtscript_QSplashScreen_fromScriptValue

static void qtscript_QSplashScreen_fromScriptValue(const QScriptValue &value, QSplashScreen* &out)
{
    out = qobject_cast<QSplashScreen*>(value.toQObject());
}
开发者ID:Mistobaan,项目名称:MuseScore,代码行数:4,代码来源:qtscript_QSplashScreen.cpp

示例12: UsernameClusterfromScriptValue

void UsernameClusterfromScriptValue(const QScriptValue &obj, UsernameCluster* &item)
{
  item = qobject_cast<UsernameCluster*>(obj.toQObject());
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:4,代码来源:usernameCluster.cpp

示例13: UsernameLineEditfromScriptValue

void UsernameLineEditfromScriptValue(const QScriptValue &obj, UsernameLineEdit* &item)
{
  item = qobject_cast<UsernameLineEdit*>(obj.toQObject());
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:4,代码来源:usernameCluster.cpp

示例14: qtscript_QPlainTextEdit_fromScriptValue

static void qtscript_QPlainTextEdit_fromScriptValue(const QScriptValue &value, QPlainTextEdit* &out)
{
    out = qobject_cast<QPlainTextEdit*>(value.toQObject());
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:4,代码来源:qtscript_QPlainTextEdit.cpp

示例15: qtscript_QColumnView_fromScriptValue

static void qtscript_QColumnView_fromScriptValue(const QScriptValue &value, QColumnView* &out)
{
    out = qobject_cast<QColumnView*>(value.toQObject());
}
开发者ID:DanielJSlick,项目名称:qcad,代码行数:4,代码来源:qtscript_QColumnView.cpp


注:本文中的QScriptValue::toQObject方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。