Its a simple (i thing) connect:
connect (ui.paintButton, SIGNAL (clicked()), this, SLOT (initPixmap()));
connect (ui.paintButton, SIGNAL (clicked()), this, SLOT (initPixmap()));
To copy to clipboard, switch view to plain text mode
.
Interface has been created with Qt Designer, so "ui" represents that object.
initPixmap() function contains the code I posted before.
Same line works if i load a bmp file:
pixmap.load("xxxx.bmp",const char *,Qt::Flags);
ui.label->setPixmap (pixmap);
pixmap.load("xxxx.bmp",const char *,Qt::Flags);
ui.label->setPixmap (pixmap);
To copy to clipboard, switch view to plain text mode
, and there aren´t console message indicating some like "No such slot/signal...."
I think i´m missing some important concept about Qt graphics framework.
thanks again
Bookmarks