无法从 Visual Studio 打开 Qt 表单 (*.ui) 文件 [英] Unable to open Qt form (*.ui) files from Visual Studio

查看:68
本文介绍了无法从 Visual Studio 打开 Qt 表单 (*.ui) 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法从 Visual Studio 2008 Qt 项目打开 QT 表单文件 (*.ui).我正在使用 Qt 4.5.0.我收到以下错误:

I am unable to open QT form file (*.ui) from a Visual Studio 2008 Qt project. I'm using Qt 4.5.0. I get the the following error:

The file test.ui cannot be opened with Qt 4 form editor. Try converting the file using uic.exe

推荐答案

我也有同样的症状,解决办法是把ui文件的顶行去掉(用文本编辑器打开一次)

I had the same symptoms, and the solution was to remove the top line of the ui file (once open with a text editor)

令人惊讶的是 Qt 不支持格式良好的 xml...

Surprising that Qt does not support well formed xml...

Meilleures 致辞

Meilleures Salutations

这篇关于无法从 Visual Studio 打开 Qt 表单 (*.ui) 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆