46 static const QHash<QString, LayoutInfo::Type> nameTypeMap = {
47 {u"QVBoxLayout"_s, LayoutInfo::VBox},
48 {u"QHBoxLayout"_s, LayoutInfo::HBox},
49 {u"QGridLayout"_s, LayoutInfo::Grid},
50 {u"QFormLayout"_s, LayoutInfo::Form}
227 QFormLayout::ItemRole role;
228 formLayout->getItemPosition(index, &row, &role);
229 const int columnspan = role == QFormLayout::SpanningRole ? 2 : 1;
230 const int column = (columnspan > 1 || role == QFormLayout::LabelRole) ? 0 : 1;
238 *colspanPtr = columnspan;
252 const bool spanning = r.width() > 1;
254 formLayout->insertRow(r.y(), w);
263 formLayout->insertRow(r.y(), label, field);
266 formLayout->setWidget(r.y(), formLayoutRole(r.x(), r.width()), w);
QDESIGNER_SHARED_EXPORT void getFormLayoutItemPosition(const QFormLayout *formLayout, int index, int *rowPtr, int *columnPtr=nullptr, int *rowspanPtr=nullptr, int *colspanPtr=nullptr)