Use nodegui develop high-performance cross-platform desktop application

nodegui is based on the qt + nodejs cross-platform desktop development program, the official also offers a very good document

Simple to use

Use the official starter

  • Code clone
git clone https://github.com/nodegui/nodegui-starter.git
  • Installation depends
    a bit slow, wait
 
cd burned down - starter.
yarn 

effect:

@ Burned down / burn-off @ 0.1.8 install / Users / Dalong / Documents / GitHub / burned down - starter / node_modules / @ burned down / burn-off
> npm -v
6.9.0
> @nodegui/qode@1.0.4 postinstall /Users/dalong/Documents/GitHub/nodegui-starter/node_modules/@nodegui/qode
> node install.js
Local Qode 1.0.4 archive doesnt exists... Copying Qode from cache...
Extracting binaries...
> @ Burned down / burn-off @ 0.1.8 postinstall / Users / Dalong / Documents / GitHub / burned down - starter / node_modules / @ burned down / burn-off
> npm run build:addon
> @ Burned down / burn-off @ 0.1.8 build: addon / Users / Dalong / Documents / GitHub / burned down - starter / node_modules / @ burned down / burn-off
> node-gyp -j 8 configure build
  CC(target) Release/obj.target/nothing/../../node-addon-api/src/nothing.o
  TOUCH 8d54a0613d50a84adae49a5312f848b52b1b3ed9.intermediate
  ACTION binding_gyp_qtnode_target_symlink_qt_headers 8d54a0613d50a84adae49a5312f848b52b1b3ed9.intermediate
  LIBTOOL-STATIC Release/nothing.a
  CXX(target) Release/obj.target/qtnode/src/cpp/main.o
  CXX(target) Release/obj.target/qtnode/src/cpp/Extras/Utils/nutils.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/FlexLayout/flexlayout.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/FlexLayout/flexitem.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/YogaWidget/nodestyle.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/Events/eventsmap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/Events/eventwidget.o
  CXX(target) Release/obj.target/qtnode/src/cpp/core/YogaWidget/yogawidget.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtGui/QApplication/qapplication_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtGui/QClipboard/qclipboard_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtGui/QEvent/QKeyEvent/qkeyevent_wrap.o
  CXX(target) Release/obj.target/qtnode/src/cpp/QtGui/QPixmap/qpixmap_wrap.o
.....
 
 
  • start up
yarn start
  • effect

 

 

Explanation

nodegui as a cross-platform desktop development is good, very good performance, need attention noodejs version v12.0 and above, while the official also includes a development kit based react, and 
packaging framework but also provides a cross-platform packer

Reference material

https://github.com/nodegui/nodegui
https://nodegui.github.io/nodegui/

Guess you like

Origin www.cnblogs.com/rongfengliang/p/11487743.html