feat: support basic image copy and paste
This commit is contained in:
@@ -59,6 +59,13 @@ void GraphicsView::showImage(const QPixmap &pixmap)
|
||||
checkAndDoFitInView();
|
||||
}
|
||||
|
||||
void GraphicsView::showImage(const QImage &image)
|
||||
{
|
||||
resetTransform();
|
||||
scene()->showImage(QPixmap::fromImage(image));
|
||||
checkAndDoFitInView();
|
||||
}
|
||||
|
||||
void GraphicsView::showText(const QString &text)
|
||||
{
|
||||
resetTransform();
|
||||
|
||||
Reference in New Issue
Block a user