Is your problem solved?
if you doing hand coding then you can use QGridLayout which is easy to set all widget.
like
{
// Title of the window
setWindowTitle("Browse Images");
resize(700, 400); // I'm using your old values
QPushButton *b_search = new QPushButton(tr("SEARCH"));
QPushButton *b_exit = new QPushButton(tr("Exit"));
QLabel *l_welcome = new QLabel(tr("--Browse Images--"));
l_welcome->setFont(QFont("Times", 18, QFont::Bold));
l_welcome->setAlignment(Qt::AlignCenter);
QGraphicsView *g_graphics = new QGraphicsView(this);
g_graphics->scale(50,70);
QGridLayout *gridLayout = new QGridLayout(this);
gridLayout->addWidget(l_welcome,0,2,1,4);
gridLayout->addWidget(g_graphics,1,2,4,5);
gridLayout->addWidget(b_search,6,3);
gridLayout->addWidget(b_exit,7,3);
gridLayout->setColumnMinimumWidth(0,50);
gridLayout->setColumnMinimumWidth(7,50);
setLayout(gridLayout);
connect(b_exit, SIGNAL(clicked()), qApp, SLOT(quit()));
}




Rajesh Kumar Singh
Reply With Quote

Bookmarks