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