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

Designer generates invalid code/ui file with spacer in vertical layout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.8.0
    • 4.8.0
    • Tools: Designer
    • None
    • a6f87c60

    Description

      • create a new form
      • add a few widgets including a vertical spacer
      • 'layout vertically'

      --> compile error

      In file included from mainwindow.cpp:2:
      ui_mainwindow.h: In member function 'void Ui_MainWindow::setupUi(QMainWindow*)':
      ui_mainwindow.h:64: error: no matching function for call to 'QVBoxLayout::addItem(QSpacerItem*&, int, Qt::AlignmentFlag)'
      ../../../git/qt-4.8-fire/include/QtGui/../../../4.8/src/gui/kernel/qboxlayout.h:88: note: candidates are: virtual void QBoxLayout::addItem(QLayoutItem*)
      make: *** [mainwindow.o] Error 1

      Attachments

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

        Activity

          People

            jkobus Jarek Kobus
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes