Hi all,

I have problem using Grid Layout. Problem is its taking too much space between columns can some body explain how to remove space? I have attached the problem snap shot and the target look and feel I want Can some body please help

problem..gif

target.gif

Here is the code I have written,
first= new QGroupBox("Search details");

QGridLayout *search= new QGridLayout;

QLabel *searchFor= new QLabel("Search for:");
QLabel *within= new QLabel(" Within:");
QLabel *of= new QLabel(" of:");

QComboBox *searchCombo= new QComboBox;
QComboBox *searchCombo1= new QComboBox;
QStringList item1,item2;

item1<< tr(" Palo Alto") << tr("San Jose");
item2<< tr("Centre of Current Map");

searchCombo->addItems(item1);
searchCombo->addItems(item2);

QSpinBox *kiloMeters= new QSpinBox;

kiloMeters->setRange(0,30);
kiloMeters->setSuffix(" km");

search->addWidget(searchFor,0,0);
search->addWidget(searchCombo,0,1);
search->addWidget(within,1,0);
search->addWidget(kiloMeters,1,1);
search->addWidget(of,2,0);
search->addWidget(searchCombo1,2,1);

first->setLayout(search);

I dont know what the problem is ?