Not winning 
Created in header class of myLabel (as QPainter is within this class)
void resizeEvent(QResizeEvent *event);
To copy to clipboard, switch view to plain text mode
implementation.cpp: 

{
//Taken partially from example Scribble ( http://www.trinitydesktop.org/docs/qt4/widgets-scribble.html )
if(width() > fplabel.width() || height() > fplabel.height())
{
int newWidth = qMax(width()+128, fplabel.width());
int newHeight = qMax(height()+128, fplabel.height());
QSize(newWidth, newHeight
);
painter.
drawImage(QPoint(0,
0),
*image
);
*image = newImage;
update();
}
}
void resizeEvent(QResizeEvent *event)
{
//Taken partially from example Scribble ( http://www.trinitydesktop.org/docs/qt4/widgets-scribble.html )
if(width() > fplabel.width() || height() > fplabel.height())
{
int newWidth = qMax(width()+128, fplabel.width());
int newHeight = qMax(height()+128, fplabel.height());
QSize(newWidth, newHeight);
QImage newImage(newSize);
QPainter painter(&newImage);
painter.drawImage(QPoint(0, 0), *image);
*image = newImage;
update();
}
}
To copy to clipboard, switch view to plain text mode
Image is uploaded in main class
Not sure how to go about it
ideas please
Bookmarks