如果框架如Qt创建GUI,如果C ++没有功能呢? [英] How frameworks like Qt create GUI, if C++ has no functionality for that?

查看:138
本文介绍了如果框架如Qt创建GUI,如果C ++没有功能呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从此处的问题中获得的答案:仅使用标准C ++的图形?

From the answers recieved for the question here: Graphics using Standard C++ only?

似乎是C ++本身没有GUI功能。那么如何做其他框架像Qt支持C ++中的GUI这样做?他们在内部使用一些其他语言还是有一些其他标准的lobrary /协议为GUI?

Seems to be that C++ itself does not have GUI functionality. So how do other Frameworks like Qt which support GUI in C++ do that? Do they use some other language internally or is there some other standard lobrary/protocol for GUI?

我只关注C ++语言框架。

And I am concerned about the C++ language frameworks only.

谢谢。

推荐答案

以创建GUI组件。

例如。在Windows上,他们调用Windows CreateWindow API以创建窗口。

Eg. on Windows they call the Windows CreateWindow API to create a window.

在多个平台上工作的框架,它包含不同的GUI代码平台,在Windows上调用 CreateWindow ,例如在Mac上调用

Where a framework works on multiple platforms, it contains different GUI code for each of those platforms, calling CreateWindow on Windows or whatever the Mac equivalent is on a Mac, for example.

这篇关于如果框架如Qt创建GUI,如果C ++没有功能呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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