Priority: Not Evaluated
Affects Version/s: 5.3.1
Fix Version/s: None
Component/s: Build tools: uic
Environment:$ uname -a
Linux 3.14-1-amd64 #1 SMP Debian 3.14.10-1 (2014-07-07) x86_64 GNU/Linux
Qt Creator 3.1.2 (opensource)
Based on Qt 5.3.1 (GCC 4.6.1, 64 bit)
$ qmake -v
QMake version 3.0
Using Qt version 5.3.1 in /opt/Qt5.3.1/5.3/gcc_64/lib
$ uic -v
I've been trying to create a groupBox widget with a scrollArea using Qt Creator. Looking at the resultant generated ui_settings.h file (attached) I noticed that the scrollArea::setWidget is being applied to QWidget *scrollAreaWidgetContents
whereas the items in the groupBox were actually being added to QWidget *layoutWidget2, created as
If I modify the uic-generated ui_settings.h file to assign the scrollArea::setWidget to this layoutWidget2 instead of scrollAreaWidgetContents, then the scrollbars appear
I then looked at the ui file (settings.ui, attached) and noticed there was no layoutWidget2. So I did a make clean - cleaned everything out and did a manual uic on the ui file and saw the following warnings:
settings.ui: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget1'.
settings.ui: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget2'
I was searching through through the bug reports using various keywords before writing up a new one. The closest one I found was QTCREATORBUG-7044 so I added notes there but decided to write up a new one.