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

uic: QToolBox doesn't include <QtGui/QLayout> but uses QLayout when you set tabSpacing field (and perhaps others) on unlaidout forms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 4.8.0
    • 4.7.3
    • Tools: Designer
    • None
    • Win 7 (32 bits)
    • 89f5c035bd3798a0998c3046de643bda0fa8da6b

    Description

      This bug appears in QCreator when you set (for exemple) tabSpacing field of a QToolBox. Indeed, the generated file ui_myWidget.h try to set the value but can't.

      In ui_myWidget.h:
      the line "toolBox->layout()->setSpacing(1);" generates this error : ui_myWidget.h:144: erreur : invalid use of incomplete type 'struct QLayout'

      And if you add "#include <QtGui/QLayout>" manually, that works but if now you modify again a propertie of the widget, the file is generate again and you need to re-add the include line...

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            aureliendc Aurélien Da Campo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes