Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 QT 的新手。我开始使用 QT Creator。有没有办法用 QT 创建本机 OS UI?是否有任何 Windows 和 OS X UI 库或视觉设计师?
谢谢!
如果您想要在 Windows 上看起来像 Windows 的本地操作系统 UI 和在 OS X 上看起来像 OS X 的东西,您应该在 Qt Creator 中创建一个“Qt Designer Form Class”。
这将为您提供一个 .cpp、一个 .h 和一个 .ui 文件。此 .ui 文件的 UI 设计器将自动打开。
您也可以通过选择“Qt Designer Form”仅创建 .ui 文件,但是您必须自己将 .ui 文件(或者更确切地说由 Qt 生成的类)集成到您的代码中。