简体   繁体   English

Qt Creator是用Qt Creator构建的吗?

[英]Is Qt Creator built with Qt Creator?

Questions: 问题:

  1. Is Qt Creator built with Qt Creator? Qt Creator是用Qt Creator构建的吗?

  2. Similarly, is Qt Designer built with Qt Designer? 同样,Qt Designer是用Qt Designer构建的吗?

  3. BTW, why are there two Qt IDEs? 顺便说一句,为什么有两个Qt IDE? Are they competitors? 他们是竞争者吗? Which one should I use? 我应该使用哪一个? I am using Creator. 我正在使用创作者。

  4. What is Qt SDK? 什么是Qt SDK? I am asking this because the Qt Designer & Creator 2.2.1 and Qtmake 4.7.4 that I installed thro ubuntu 11.10 s/w centre does not work. 我问这个是因为我安装了ubuntu 11.10 s / w中心的Qt Designer&Creator 2.2.1和Qtmake 4.7.4不起作用。 The build menu is all greyed out. 构建菜单全部显示为灰色。 When I downloaded the latest QtSDK (2.3.1/4.7.4) into a separate installation into /opt/QtSDK, both the ubuntu sanctioned installation and the /opt/QtSDK would work as expected. 当我将最新的QtSDK(2.3.1 / 4.7.4)下载到/ opt / QtSDK的单独安装中时,ubuntu认可的安装和/ opt / QtSDK都将按预期工作。 Why did my ubuntu sanctioned installation not work without the SDK? 为什么我的ubuntu认可的安装不能在没有SDK的情况下工作? What does the SDK do? SDK有什么作用?

  5. This one is for Ubuntu enthusiasts - Qt IDE requires the SDK to work, and yet ubuntu released both Creator/Designer without checking if they work first? 这个适用于Ubuntu爱好者 - Qt IDE要求SDK工作,但ubuntu发布了Creator / Designer而不检查它们是否先工作? There is no QtSDK installation item in s/w centre. s / w中心没有QtSDK安装项目。 Is that intentional, or a procedural bug? 这是故意的还是程序性的错误?

  6. After I build my desktop app (I am building a tabbed file explorer) on Linux, what steps do I need to make to have it running on Windows 7/Vista? 在Linux上构建我的桌面应用程序(我正在构建一个选项卡式文件浏览器)之后,我需要采取哪些步骤才能在Windows 7 / Vista上运行它? Will I rebuild on a windows version of Qt Creator? 我会在Windows版的Qt Creator上重建吗?

I also notice that Qt Creator code generation is not perfect. 我还注意到Qt Creator代码生成并不完美。 It would forget to include some Qt library files in the auto-generated code, and I had to correct that manually. 它会忘记在自动生成的代码中包含一些Qt库文件,我必须手动更正它。

Is Qt Creator built with Qt Creator? Qt Creator是用Qt Creator构建的吗?

I believe so. 我相信是这样。

That doesn't mean that everyone who works on Qt has to use it - just that I believe that lots of people do. 这并不意味着每个在Qt上工作的都必须使用它 - 只是我相信很多人都会这样做。

I don't work for any of the companies that have produced Qt, but my reasoning is: 我不为任何生产Qt的公司工作,但我的理由是:

  • A Google search for "dogfooding qt creator" brings up plenty of hits, including this comment from November 2010: 谷歌搜索“dogfooding qt creator”会引发大量热门话题,包括2010年11月的评论

    We're also “dogfooding” by releasing complex apps like Qt Creator and the Ovi Suite on the desktop ports of Qt 通过在Qt桌面端口上发布Qt Creator和Ovi Suite等复杂应用程序,我们也是“dogfooding”

  • They've put a massive amount of effort into Qt Creator over the last few years. 在过去的几年里,他们为Qt Creator付出了巨大的努力。 It's hard to imagine that being worthwhile, unless they used it themselves 除非他们自己使用它,否则很难想象它是值得的
  • At recent Qt Developer Days, Qt Developers have spoken really enthusiastically about Qt Creator 在最近的Qt开发者日,Qt开发者非常热情地谈论Qt Creator

Similarly, is Qt Designer built with Qt Designer? 同样,Qt Designer是用Qt Designer构建的吗?

Yes. 是。 A look at the Qt Designer source code shows plenty of .ui (Designer) files. 查看Qt Designer源代码可以看到大量的.ui(Designer)文件。

Why are there two Qt IDEs? 为什么有两个Qt IDE? Are they competitors? 他们是竞争者吗? Which one should I use? 我应该使用哪一个? I am using Creator. 我正在使用创作者。

When you edit .ui files insiide Qt Creator, you are still running Qt Designer: it's simply showing the Designer window inside Creator, for convenience. 当您在Qt Creator中编辑.ui文件时,您仍然在运行Qt Designer:为方便起见,它只是在Creator中显示Designer窗口。

What is Qt SDK? 什么是Qt SDK? ... What does the SDK do? ...... SDK有什么作用?

Qt SDK is just a convenient way to download all the Qt tools in one go. Qt SDK只是一次下载所有Qt工具的便捷方式。 You don't have to use it. 不必使用它。

This one is for Ubuntu enthusiasts ... Is that intentional, or a procedural bug? 这个是针对Ubuntu的爱好者......是故意还是程序错误?

Sorry - no idea. 对不起 - 不知道。 It's hard to imagine it being intentional though. 很难想象它是故意的。

After I build my desktop app (I am building a tabbed file explorer) on Linux, what steps do I need to make to have it running on Windows 7/Vista? 在Linux上构建我的桌面应用程序(我正在构建一个选项卡式文件浏览器)之后,我需要采取哪些步骤才能在Windows 7 / Vista上运行它? Will I rebuild on a windows version of Qt Creator? 我会在Windows版的Qt Creator上重建吗?

You will need to install Qt on a Windows PC, and then build your source code in it. 您需要在Windows PC上安装Qt,然后在其中构建源代码。

You can either do that by using Qt Creator and the Windows compiler it includes (mingw) or you can use another compiler, if you have one, eg Visual Studio. 你可以通过使用Qt Creator和它包含的Windows编译器(mingw)来做到这一点,或者你可以使用另一个编译器,如果你有一个,例如Visual Studio。

I also notice that Qt Creator code generation is not perfect. 我还注意到Qt Creator代码生成并不完美。 It would forget to include some Qt library files in the auto-generated code, and I had to correct that manually. 它会忘记在自动生成的代码中包含一些Qt库文件,我必须手动更正它。

If you've used any non-Qt classes in arguments to signals and slots, then this answer may help you there. 如果您在信号和插槽的参数中使用了任何非Qt类,那么这个答案可能对您有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM