Don't worry about the frame size, first join the images and then you can resize the merged image to whatever size you need.
But can u suggest me suppose we create
QPainter painter;
QPixmap pixmap;
now how we can pass the pixmap to a label that we have created through QPainter
Read the QPainter docs, there is an example how to use it:
Qt Code:
  1. QPixmap mergedImg( width, height );
  2. QPainter painter(&mergedImg);
  3. //... do the painting
  4. painter.end();
  5. // and then assign mergedImg for label
To copy to clipboard, switch view to plain text mode