QLabel *m_pLabel = new QLabel;
QPixmap *m_pPixmap = new QPixmap("xxx");
m_pLabel->setScaledContents(true);
m_pLabel->setPixmap(*pixmap);
m_pPixmap->scaled(m_pLabel->size(), Qt::KeepAspectRatio);
QLabel *m_pLabel = new QLabel;
QPixmap *m_pPixmap = new QPixmap("xxx");
m_pLabel->setScaledContents(true);
m_pLabel->setPixmap(*pixmap);
m_pPixmap->scaled(m_pLabel->size(), Qt::KeepAspectRatio);
本文标题:Qt QLabel显示遇到图片显示不全
本文链接:https://www.haomeiwen.com/subject/qmuwbctx.html
网友评论