本文整理汇总了C++中QDeclarativeItem::setProperty方法的典型用法代码示例。如果您正苦于以下问题:C++ QDeclarativeItem::setProperty方法的具体用法?C++ QDeclarativeItem::setProperty怎么用?C++ QDeclarativeItem::setProperty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QDeclarativeItem
的用法示例。
在下文中一共展示了QDeclarativeItem::setProperty方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setSParent
void PropertiesPane::setSParent(QString f)
{
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("parentName",f);
// qDebug()<<f;
}
示例2: showSingleCamera
void LiveViewWindow::showSingleCamera(DVRCamera *camera)
{
m_liveView->layout()->setGridSize(1, 1);
QDeclarativeItem *item = m_liveView->layout()->addItem(0, 0);
if (item)
item->setProperty("camera", QVariant::fromValue(camera));
}
示例3: setSGameName
//ui--->qml
void PropertiesPane::setSGameName(QString name)
{
if(namepr.isEmpty())
return;
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("objectName",name);
}
示例4: setSScale
void PropertiesPane::setSScale(double value)
{
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("scale",value);
}
示例5: setSCol
void PropertiesPane::setSCol(int col)
{
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("cols",col);
}
示例6: setSRow
void PropertiesPane::setSRow(int row)
{
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("rows",row);
}
示例7: setSVisible
void PropertiesPane::setSVisible(bool value)
{
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("shadowVisible",value);
}
示例8: setSYanchor
void PropertiesPane::setSYanchor(int yanchor)
{
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("anchorY",yanchor);
}
示例9: setSXanchor
void PropertiesPane::setSXanchor(int xanchor)
{
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("anchorX",xanchor);
// qDebug()<<"anchorx:"<<xanchor;
}
示例10: setSH
void PropertiesPane::setSH(int h)
{
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("h",h);
}
示例11: setSW
void PropertiesPane::setSW(int w)
{
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("w",w);
}
示例12: setSY
void PropertiesPane::setSY(int y)
{
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("y",y);
}
示例13: setSX
void PropertiesPane::setSX(int x)
{
QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
tm->setProperty("x",x);
}