QPainter p1(tmpPix);
tmpPix->fill(Qt::transparent);
p1.setCompositionMode(QPainter::CompositionMode_SourceAtop);
p1.drawImage(offset.width(), offset.height(), pixmap->toImage());
這個CompositionMode_SourceAtop模式在release模式下relase不顯示,別的模式都可以,有人遇到過沒有?
uj5u.com熱心網友回復:
解決了,tmpPix以前是QPixmap 改成 QImage就沒問題了,回貼給分了uj5u.com熱心網友回復:
我想結貼,回復一下uj5u.com熱心網友回復:
不要臉的來拿分了轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/32178.html
標籤:Qt
上一篇:QT程式例外結束
