Доброго времени суток.Собственно вопрос:КодC++ (Qt) QWidget *window; QVBoxLayout *vLayout; QPushButton *pButton_1; QSpacerItem *vSpacer; window = new QWidget; window->setObjectName(QString::fromUtf8("cwidge t")); vLayout = new QVBoxLayout(window); vLayout->setObjectName(QString::fromUtf8("vLayou t")); vSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding); vLayout->addItem(vSpacer); pButton_1 = new QPushButton("pButton_1"); pButton_1->setObjectName(QString::fromUtf8("pButto n_1")); vLayout->addWidget(pButton_1); window->show(); for (int i=0, lcount=vLayout->count(); i < lcount; ++i) { if(vLayout->itemAt(i)->spacerItem()) { QSize sHint = vLayout->itemAt(i)->spacerItem()->sizeHint(); qDebug()
|