darksaga
17th August 2007, 21:12
hi all,
I'd like to get rid of the border around the QGraphicsView if I setup a QDialog or QWidget as follows:
TestDialog::TestDialog(QWidget *parent)
: QDialog(parent)
{
QGraphicsView *view = new QGraphicsView(this);
QHBoxLayout *centerLayout = new QHBoxLayout;
centerLayout->addWidget(view);
setLayout(centerLayout);
}
this image shows, what I mean:
http://img244.imageshack.us/img244/5630/dialogwf7.png
regards
I'd like to get rid of the border around the QGraphicsView if I setup a QDialog or QWidget as follows:
TestDialog::TestDialog(QWidget *parent)
: QDialog(parent)
{
QGraphicsView *view = new QGraphicsView(this);
QHBoxLayout *centerLayout = new QHBoxLayout;
centerLayout->addWidget(view);
setLayout(centerLayout);
}
this image shows, what I mean:
http://img244.imageshack.us/img244/5630/dialogwf7.png
regards