1.Error:
Could not create directory "D:\QtCreatorProject\Error in " Util.asciify("build-t2-Desktop_Qt_5_6_1_MinGW_32bit-Debug")": TypeError: Property 'asciify' of object Core::Internal::UtilsJsExtension(0x3bcb4c0) is not a function"
解决方法:点击左边模式选择器中的项目,重新设置构建目录,选择当前项目的创建文件夹,如图下所示:
2.鼠标按下事件 Qt Creator 4.6
(1)widget.cpp 添加 头文件和方法体:
#include <QMessageBox>
void Widget::mousePressEvent(QMouseEvent *event){
QMessageBox::information(NULL, "Title", "Content", QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
}
(2)widget.h 添加 方法声明:
protected:
void mousePressEvent(QMouseEvent *event);