Hi people,
I did like to put an image (logo) in my MdiArea. Already I tried many methods but nothing worked.
The application main window was created with QDesigner and I create the mdiarea like this:
qBuilder::qBuilder(QWidget* parent, Qt::WFlags fl)
: QMainWindow( parent, fl ), Ui::formQBuilder()
{
setupUi(this);
mdiArea = new QMdiArea(this);
setCentralWidget(mdiArea);
}
I try use:
QImage img("logo.jpg");
mdiArea->setBackground(QPixmap::fromImage(img));
but the logo is showd in tiled mode. Already I tried to use also QPaintEvent but also didn't works
Can someone help me to resolve this problem?
Thanks
Bookmarks