44 static const QHash<QString, LayoutInfo::Type> nameTypeMap = {
45 {u"QVBoxLayout"_s, LayoutInfo::VBox},
46 {u"QHBoxLayout"_s, LayoutInfo::HBox},
47 {u"QGridLayout"_s, LayoutInfo::Grid},
48 {u"QFormLayout"_s, LayoutInfo::Form}
224 QFormLayout::ItemRole role;
225 formLayout->getItemPosition(index, &row, &role);
226 const int columnspan = role == QFormLayout::SpanningRole ? 2 : 1;
227 const int column = (columnspan > 1 || role == QFormLayout::LabelRole) ? 0 : 1;
235 *colspanPtr = columnspan;
249 const bool spanning = r.width() > 1;
251 formLayout->insertRow(r.y(), w);
260 formLayout->insertRow(r.y(), label, field);
263 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)