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

December 23, 2019 at 6:37pm
Hi guys, is this chat alive?
  • reply
  • like
I'm wondering, is it possible to grab the screen (take a screenshot or video) using NodeGUI. I'm a newcomer (30 minutes of NodeGUI usage) and realized that in QScreen has a support of grabbing a screen, however QScreen is missing out of NodeGUI?
  • reply
  • like
I'm guessing it doesn't work on every OS since the latest release is 3 years ago, but I'm using this as a reminder that you can also use almost every npm package with NodeGUI.
  • reply
  • like

December 24, 2019 at 6:53am
I'm wondering, is it possible to grab the screen (take a screenshot or video) using NodeGUI. I'm a newcomer (30 minutes of NodeGUI usage) and realized that in QScreen has a support of grabbing a screen, however QScreen is missing out of NodeGUI?
Like how Dimitar mentioned, you can use any already available npm packages that work with nodejs along side nodegui. https://www.npmjs.com/package/screenshot-desktop this seems to do the job. But if you really want Qt based solution, then maybe we can put it in the backlog. It would be amazing if you can help out exporting it in Nodegui. Its pretty straightforward and we can help you out!
  • reply
  • like

December 28, 2019 at 8:56pm
Hello everyone
  • reply
  • like
Whats the easiest way to do a hover-background change with react-nodegui?
  • reply
  • like
using the style prop only, not a global stylesheet + id
Edited
  • reply
  • like
I have many rows in a table and it feels weird to have to place the same id for different component instances
  • reply
  • like

December 29, 2019 at 3:59am
I have many rows in a table and it feels weird to have to place the same id for different component instances
Could you paste a code snippet here ? You can have styleSheet prop at multiple levels on the component tree. So I would suggest that you set a styleSheet prop just one level above your children you want to style and set the styles there. I can help you out more if you paste a bit of code here.
  • reply
  • like

December 29, 2019 at 12:39pm
Thank you, this is definitely a good solution! Will try to use it in my app
  • reply
  • like
Like how Dimitar mentioned, you can use any already available npm packages that work with nodejs along side nodegui. https://www.npmjs.com/package/screenshot-desktop this seems to do the job. But if you really want Qt based solution, then maybe we can put it in the backlog. It would be amazing if you can help out exporting it in Nodegui. Its pretty straightforward and we can help you out!
Thank you, , I'd love to help, however I'm not a QT guy at all.. Maybe later after I dig in deeper into the source code of NodeGui, I can do something though!
like-fill
1
  • reply
  • like

January 12, 2020 at 8:59pm
Hi, so I've been experimenting with the possibility of setting a custom property setProperty() to an array (possibly/likely QStringList) and wasn't able to. I've been seeing if there is possibility to create a class (custom class) prop for e.g. vue-nodegui that I've been working on but it would require running through PostCSS most likely to translate selectors to something that would fit like *[classList="class-one"][classList="class-two"]. Is this even possible and if so can we get the ability to set a property to a QStringList? I'm sure a property with a QStringList may be useful outside just this scenario though
Edited
  • reply
  • like
Show more messages