Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-14188

Append 2 QFormLayout

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 4.7.0
    • Widgets: Layout
    • None

      Hello, can you add method to append 2 QFromLayout in respect the view (the widget can be created not in order into the designer but it work), then that's will put the first QFormLayout rows and the second rows after the first QFormLayout.
      Thanks.

      QFormLayout::addRows(QFormLayout * layoutToAppend)
      For example append 2 QFormLayout desgined into Qt Designer and loaded from c++.

      Do like that's:
      [code] int interfaceMaxCount=interface->layout()->count();
      while(interface->layout()->count()>=2)
      {
      QLayoutItem *layoutA;
      QLayoutItem *layoutB;
      int index=0;
      do

      { layoutA=interface->itemAt(index,QFormLayout::LabelRole); layoutB=interface->itemAt(index,QFormLayout::FieldRole); index++; }

      while((layoutA==NULL || layoutB==NULL) && (index*2)<=interfaceMaxCount);
      if(layoutA==NULL || layoutB==NULL)
      break;
      else

      { QWidget *tempA=layoutA->widget(); QWidget *tempB=layoutB->widget(); if(tempA!=NULL && tempB!=NULL) optionGroupList[indexEngineGroup].interfaceLayout->addRow(tempA,tempB); }

      }[/code]

      For exemple I will append:
      http://files.first-world.info/ultracopier/other/LanguagesOptions.ui
      with:
      http://files.first-world.info/ultracopier/other/ThemesOptions.ui
      To do:
      http://files.first-world.info/ultracopier/other/screenshot48.png

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            alpha_one_x86 BRULE Herman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes