简体   繁体   中英

How frameworks like Qt create GUI, if C++ has no functionality for that?

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

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?

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

Thank You.

They call operating system APIs, or APIs in other frameworks, in order to create GUI components.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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