CodePudding user response:
Problem description is more comprehensive, so look not to come out to everyoneCodePudding user response:
QString fileName=QFileDialog: : getOpenFileName (this, tr (" please select a picture "), "E:", tr (" BMP file (* BMP) ")); Mat mainMat=imread (fileName. ToStdString ()); QImage image=QImage (const unsigned char *) (newMat. Data), newMat. The cols, newMat. Rows, newMat. Step, QImage: : Format_RGB888); QImage image=MatImageToQImage (mainMat); QPixmap * pixmap=QPixmap: : fromImage (image); In QImage image=QImage (const unsigned char *) (newMat. Data), newMat. The cols, newMat. Rows, newMat. Step, QImage: : Format_RGB888); Convert this sentence when abnormal unable to for Qt5cored. The DLL is loaded any symbol?CodePudding user response:
Write wrongCodePudding user response:
Write wrong QString fileName=QFileDialog: : getOpenFileName (this, tr (" please select a picture "), "E:", tr (" BMP file (* BMP) ")); Mat newMat=imread (fileName. ToStdString ()); QImage image=QImage (const unsigned char *) (newMat. Data), newMat. The cols, newMat. Rows, newMat. Step, QImage: : Format_RGB888); QPixmap * pixmap=QPixmap: : fromImage (image); In QImage image=QImage (const unsigned char *) (newMat. Data), newMat. The cols, newMat. Rows, newMat. Step, QImage: : Format_RGB888); Convert this sentence when abnormal unable to for Qt5cored. The DLL is loaded any symbol?CodePudding user response:
Is solved, the original QImage shallow copy of the problemCodePudding user response:
How to solve can say clear point? thank youCodePudding user response:
Hello, can you specifically to is how to solve?