The best way to get to the problem is through code. So here it goes.
Code:
PackageProperties::PackageProperties(QWidget *parent, const char *n) : QWidget(parent, n)
{
QHBoxLayout* hbl = new QHBoxLayout(this);
prompt[0] = new QLabel("Tar file name: ", this);
filename = new QLineEdit(this);
prompt[1] = new QLabel("Name: ", this);
name = new QLineEdit(this);
prompt[2] = new QLabel("Version: ", this);
version = new QLineEdit(this);
prompt[3] = new QLabel("Architecture: ", this);
arch = new QComboBox(this);
arch->insertItem("i386");
arch->insertItem("i486");
arch->insertItem("i586");
arch->insertItem("i686");
arch->insertItem("noarch");
arch->setCurrentItem(3);
prompt[4] = new QLabel("Build: ", this);
build = new QLineEdit(this);
QVBoxLayout* vbl = new QVBoxLayout(this);
vbl->addWidget(prompt[0]);
vbl->addWidget(prompt[1]);
vbl->addWidget(prompt[2]);
vbl->addWidget(prompt[3]);
vbl->addWidget(prompt[4]);
hbl->addLayout(vbl);
vbl = new QVBoxLayout(this);
vbl->addWidget(filename);
vbl->addWidget(name);
vbl->addWidget(version);
vbl->addWidget(arch);
vbl->addWidget(build);
hbl->addLayout(vbl);
}
In the messages portion I get a message stating
QLayout "unnamed" added to QWidget "unnamed", which already has a layout
Is there any way to accomplish the same thing and not have this message?