I am using Qt 4.1
I am using Qt 4.1
hi,
But I am unable to get the Pixmap on to the splitter handle.....
1) Are you sure you are loading the pixmap correctly? Check what pixmap.isNull() returns.
2) Are you sure you are using the correct handle index?
hi,
QVBoxLayout *v=new QVBoxLayout(this);
QLineEdit *l1=new QLineEdit(this);
QLineEdit *l2=new QLineEdit(this);
QPixmap pixmap("Album.png");
QSplitter *splitter=new QSplitter();
splitter->setHandleWidth(pixmap.width());
QLabel* label = new QLabel(splitter->handle(1));
label->setPixmap(pixmap);
splitter->addWidget(l1);
splitter->addWidget(l2);
v->addWidget(splitter);
1.Yes,pixmap is loaded successfully....
The code is shown above...
I want the pixmap to be on the splitter....
Thanks
I'm quite sure it's about the pixmap. Is it in the same dir than the executable is? Did you check what pixmap.isNull() returns? At least for me, the code I posted earlier, works fine.
hi,
The handlewidth is same as that of the image but unable to get the image picture...
Also pixmap.isNull() is returning false....
Thanks...
Bookmarks