摘要: 今天按照C++ Gui qt4编程书上介绍的动态加载对话框的时候,自己走进了一个误区:代码:QUiLoader ul;QFile file("a.ui");QWidget * wd = ul.load(&file);if(wd) wd->show();出现如下错误:Designer: An error has occurred while reading the UI file at line 1, column 0: Premature end of document.最后发现自己只是将a.ui文件放到了编译目录,而没有放到可执行文件所在的目录(QtCrea 阅读全文
posted @ 2013-03-22 11:50 justwake 阅读(1360) 评论(0) 推荐(0) 编辑