menu

NodeGui

A library for building cross-platform native desktop applications with Node.js and CSS.

Channels
Team

NodeGUI watercooler

September 1, 2019 at 8:40am
Show previous messages

October 7, 2019 at 12:04am
Its only possible use typescript to work with nodegui?
  • reply
  • like
Its only possible use typescript to work with nodegui?
Hi Dalton, you can use plain javascript as well. just replace .ts files with .js files and replace import statements with require in the starter peojects
  • reply
  • like

October 11, 2019 at 2:42pm
Hi team, thanks for the hard work on the library. I'd like to use this for an embedded application, the application should start up in fullscreen, I'm not sure if the API has been exposed for that or whether it's possible?
  • reply
  • like
Realise I'd likely want to write straight to the framebuffer, like you can with Qt
  • reply
  • like
But if that's not possible, programatically setting it with something along the lines of:
Mainwindow w;
w.setWindowState(Qt::WindowMaximized);
w.show();
  • reply
  • like

October 14, 2019 at 8:39am
But if that's not possible, programatically setting it with something along the lines of:
Mainwindow w;
w.setWindowState(Qt::WindowMaximized);
w.show();
Hi You can already do this using
import { QMainWindow, WindowState } from '@nodegui/nodegui';
const win = new QMainWindow();
win.setWindowState(WindowState.WindowMaximized);
win.show();
Edited
  • reply
  • like

October 28, 2019 at 7:35am
, I'd like to contribute to help filling up the Handle events page, where should I start?
like-fill
1
  • reply
  • like
, I'd like to contribute to help filling up the Handle events page, where should I start?
Awesome! The documentation lives in the same repo as the project. The guides can be accessed here: https://github.com/nodegui/nodegui/tree/master/website/docs/guides They are all just mark down files. And NodeGui is using docusauraus.
like-fill
1
  • reply
  • like
Great, regarding the event list, I guess I can find it on the Qt Event System docsite right?
  • reply
  • like
Great, regarding the event list, I guess I can find it on the Qt Event System docsite right?
Yes, NodeGui supports all events from Qt.So that you can get from Qt's docs or from here: https://github.com/nodegui/nodegui/blob/576ba1ace6e6e67bd65889303c9f1909249cce31/src/lib/core/EventWidget/index.ts#L40. Apart from regular events, Qt also has a concept of signals. So NodeGui also adds support for some signals. signals need to be manually exported out. So those you can find in each widget's source code ( I think those should live with each widget's doc). Since JS has only the concept of events. I merged Qt's events and Qt's signals into one in NodeGui.
  • reply
  • like
Yes, NodeGui supports all events from Qt.So that you can get from Qt's docs or from here: https://github.com/nodegui/nodegui/blob/576ba1ace6e6e67bd65889303c9f1909249cce31/src/lib/core/EventWidget/index.ts#L40. Apart from regular events, Qt also has a concept of signals. So NodeGui also adds support for some signals. signals need to be manually exported out. So those you can find in each widget's source code ( I think those should live with each widget's doc). Since JS has only the concept of events. I merged Qt's events and Qt's signals into one in NodeGui.
Let me know if you need more clarification.
  • reply
  • like
Thanks!
  • reply
  • like