0

I have multiple installations of Qt4 on my Windows XP SP2 machine and have installed Qt Creator 2.1 today. However, running the project (.pro) files spawns the oldest version of Qt Designer installed (the one installed in 2009 together with the rest of the framework).

Since

  • I would not like to remove any previous installations of Qt

  • and for some obscure reason even if I explicitly ask Windows Explorer to always use the version I need it does not

I would like to give up a bit and just sript the needed behaviour in a .bat file like:

e:\path\to\qtcreator.exe %1

This opens Qt Creator, but something seems to prevent it from treating the .pro file properly (in short, the project does not "open" as it should).

Qt documents have a page on the matter at Qt Creator: Using Command Line Options, but it seems to ignore the topic in question.

Since Qt (being as excellent framework as it is) is also known to have its quirks (like that of qmake), I wonder, may be there is an undocumented way to solve my problem?

(Another way to fix the thing would of course be to make the correct version of Qt Designer run, but frankly I'd prefer the "hard-wired" solution since the mechanisms provided by Qt itself are still a bit unreliable.)

4

1 回答 1

1

用于特定项目(以及其中的配置)的库和工具在 Qt Creator 的“项目”面板中设置:http: //doc.qt.io/qtcreator/creator-build-settings.html

选择与项目一起使用的 Qt 版本应该强制它运行作为该版本一部分的设计器。如果没有,那么您应该将其报告为错误。

于 2011-04-19T17:14:03.543 回答