I want to get file names in the function void QQTScene::dropEvent(QGraphicsSceneDragDropEvent *event),QQTScene is a class inherited from QGraphicsScene .Within the function,I write
fileName = QFileDialog::getOpenFileName(NULL, tr("打开图片"), "",tr("Image Files (*.png *.jpg *.bmp)"));
to get a file name.
However,this works perfectly in release mode,while in debug mode it crashes saying that the memory can't be "read".
What is wrong?Thanks!