How to build native C++ apps with HTML/CSS UI?

后端 未结 5 1701
没有蜡笔的小新
没有蜡笔的小新 2021-01-29 17:42

Is it possible to develop a C++ program while using HTML and CSS for the user interface? I know about programming with Javascript using a Webkit container, but I am really inter

5条回答
  •  无人共我
    2021-01-29 18:32

    I think Electron would be a nice addition to the other answers.

    It uses NodeJS to run a Webkit Window. Electron itself is only html/css/js, but you can use any Node Module within your Electron App - including custom, natively compiled C++ code. A possible Module to embed your C++ code would be node-gyp.

    Be aware, however, that this workflow may include a little bit more JS than you would have with the other answers.

    My favourite text editor, Atom, was made with Electron.

提交回复
热议问题