本文整理汇总了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;
}
示例2: Q_D
/*!
\internal
*/
void QGraphicsSceneMouseEvent::setScenePos(const QPointF &pos)
{
Q_D(QGraphicsSceneMouseEvent);
d->scenePos = pos;
}
示例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;
}
示例4: Q_D
/*!
Clears the roleNames of this proxy model.
*/
void QAbstractProxyModel::resetInternalData()
{
Q_D(QAbstractProxyModel);
d->roleNames = d->model->roleNames();
}
示例5: QObject
Compiler::Compiler(QQmlEngine *engine, CompilerOptions *options, QObject *parent) :
QObject(*(new CompilerPrivate(options)), parent)
{
Q_D(Compiler);
d->engine = engine;
}
示例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;
}
示例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;
}