qt - Only part of the QPixmap is displayed -


i want set pixmap qlabel. problem , not whole image displayed in label, i.e small part of image displayed. here code :

qpixmap pix("c:\\images\\myimg.png")); mlabel->setpixmap(pix); 

what can problem

try setting pixmap size label size

mlabel->setfixedsize(pix.size()); 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -