本文整理汇总了C++中QStackedWidget::setFrameShadow方法的典型用法代码示例。如果您正苦于以下问题:C++ QStackedWidget::setFrameShadow方法的具体用法?C++ QStackedWidget::setFrameShadow怎么用?C++ QStackedWidget::setFrameShadow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QStackedWidget
的用法示例。
在下文中一共展示了QStackedWidget::setFrameShadow方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CreateWidgets
//.........这里部分代码省略.........
listWindow.insert(idTab,stWidget);
idTab++;
//idVal = 0;
// —оздаем левое меню
xmlItem childrenItem = xml.find(childItem,md_left_menu,0);
while (!childrenItem.isNull() && childrenItem.nodeName() == md_left_menu){
name = xml.attr(childrenItem,mda_name);
type = xml.attr(childrenItem,mda_type);
title = xml.attr(childrenItem,mda_title);
wight = xml.attr(childrenItem,mda_width);
iisTaskPanel *tskPanel = new iisTaskPanel(Tab);
if (!wight.isEmpty())
tskPanel->setMinimumWidth(wight.toInt());
vb->addWidget(tskPanel,0);
vb->setAlignment(tskPanel,Qt::AlignLeft);
// √руппы меню
tskPanel->layout()->setAlignment(Qt::AlignTop);
xmlItem xmlGr = xml.find(childrenItem,md_group);
while (!xmlGr.isNull()){
name = xml.attr(xmlGr,mda_name);
type = xml.attr(xmlGr,mda_type);
title = xml.attr(xmlGr,mda_title);
//QGroupBox *Gr = new QGroupBox(name,prev);
iisTaskBox *Gr = new iisTaskBox(title);
tskPanel->addWidget(Gr);
Gr->setObjectName(name);
//Ёлементы меню
xmlItem xmlValue = xml.find(xmlGr,md_value);
while (!xmlValue.isNull()){
name = xml.attr(xmlValue,mda_name);
id = xml.attr(xmlValue,mda_id);
title = xml.attr(xmlValue,mda_title);
act = xml.sText(xmlValue,md_comaction);
iisIconLabel *val = new iisIconLabel(title);
val->setObjectName(name);
connect(val,SIGNAL(clicked()),this,SLOT(on_clicked_item()));
Gr->addIconLabel(val);
list.insert(val,idVal);
xmlItem iact = xml.findId(itActions,"",act);
xmlItem iObj, iFrm;
if (!iact.isNull()){
QString idObj = xml.sText(iact,md_objectid);
xmlItem tmp = xml.firstChild(md);
while (!tmp.isNull()){
iObj = xml.findId(tmp,"",idObj);
tmp = xml.nextSibling(tmp);
if (!iObj.isNull()) break;
}
}
if (!iObj.isNull()){
QString idFrm = xml.sText(iact,md_formid);
iObj = xml.find(iObj,md_forms);
iFrm = xml.findId(iObj,"",idFrm);
// —оздаем форму
QWidget *form =eng->OpenForm(iFrm);
if (form){
stWidget->insertWidget(idVal,form);
idVal++;
}
}
xmlValue = xml.nextSibling(xmlValue);
}
xmlGr = xml.nextSibling(xmlGr);
}
childrenItem = xml.nextSibling(childrenItem);
}
// ѕрава¤ панель
childrenItem = xml.find(childItem,md_panel);
while (!childrenItem.isNull()){
name = xml.attr(childrenItem,mda_name);
type = xml.attr(childrenItem,mda_type);
title = xml.attr(childrenItem,mda_title);
wight = xml.attr(childrenItem,mda_width);
if (!wight.isEmpty())
stWidget->setMinimumWidth(wight.toInt());
stWidget->setObjectName(name);
stWidget->setFrameStyle(1);
stWidget->setFrameShadow(QFrame::Raised);
vb->addWidget(stWidget,2);
childrenItem = xml.nextSibling(childrenItem);
}
childItem = xml.nextSibling(childItem);
}
ifTabs = xml.nextSibling(ifTabs);
}
}