本文整理汇总了C++中Q_D函数的典型用法代码示例。如果您正苦于以下问题:C++ Q_D函数的具体用法?C++ Q_D怎么用?C++ Q_D使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Q_D函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: Q_D
QmlCompilation* Compiler::compilation()
{
Q_D(Compiler);
return d->compilation;
}
开发者ID:RichardsATcn,项目名称:qmlc,代码行数:5,代码来源:compiler.cpp
示例2: Q_D
/*!
\internal
*/
void QGraphicsSceneMouseEvent::setScenePos(const QPointF &pos)
{
Q_D(QGraphicsSceneMouseEvent);
d->scenePos = pos;
}
开发者ID:FlavioFalcao,项目名称:qt5,代码行数:8,代码来源:qgraphicssceneevent.cpp
示例3: possibleActions
/*!
\internal
Sets the possible drop actions that the drag can
result in to \a actions.
\sa Qt::DropActions, possibleActions()
*/
void QGraphicsSceneDragDropEvent::setPossibleActions(Qt::DropActions actions)
{
Q_D(QGraphicsSceneDragDropEvent);
d->possibleActions = actions;
}
开发者ID:FlavioFalcao,项目名称:qt5,代码行数:12,代码来源:qgraphicssceneevent.cpp
示例4: Q_D
/*!
Clears the roleNames of this proxy model.
*/
void QAbstractProxyModel::resetInternalData()
{
Q_D(QAbstractProxyModel);
d->roleNames = d->model->roleNames();
}
开发者ID:AlexSoehn,项目名称:qt-base-deb,代码行数:8,代码来源:qabstractproxymodel.cpp
示例5: QObject
Compiler::Compiler(QQmlEngine *engine, CompilerOptions *options, QObject *parent) :
QObject(*(new CompilerPrivate(options)), parent)
{
Q_D(Compiler);
d->engine = engine;
}
开发者ID:RichardsATcn,项目名称:qmlc,代码行数:6,代码来源:compiler.cpp
示例6: screenPos
/*!
\internal
Sets the mouse position relative to the screen to \a pos.
\sa screenPos(), setScenePos(), setPos()
*/
void QGraphicsSceneDragDropEvent::setScreenPos(const QPoint &pos)
{
Q_D(QGraphicsSceneDragDropEvent);
d->screenPos = pos;
}
开发者ID:FlavioFalcao,项目名称:qt5,代码行数:11,代码来源:qgraphicssceneevent.cpp
示例7: accept
/*!
This function lets the receiver of the drop set the drop
action that was performed to \a action, which should be one
of the
\l{QGraphicsSceneDragDropEvent::possibleActions()}{possible
actions}. Call \c accept() in stead of \c
acceptProposedAction() if you use this function.
\sa dropAction(), accept(), possibleActions()
*/
void QGraphicsSceneDragDropEvent::setDropAction(Qt::DropAction action)
{
Q_D(QGraphicsSceneDragDropEvent);
d->dropAction = action;
}
开发者ID:FlavioFalcao,项目名称:qt5,代码行数:15,代码来源:qgraphicssceneevent.cpp
注:本文中的Q_D函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论