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

March 22, 2020 at 5:37pm
Got it! Thanks for the logs The issue is here: Failed to find "GL/gl.h" in "/usr/include/libdrm" Since 5.14 version of Qt i think in linux we need additional dependency You could try installing sudo apt install mesa-common-dev libglu1-mesa-dev and then run the build again
I did it and it works thank you!
like-fill
1
  • reply
  • like

April 5, 2020 at 1:09pm
Got it! Thanks for the logs The issue is here: Failed to find "GL/gl.h" in "/usr/include/libdrm" Since 5.14 version of Qt i think in linux we need additional dependency You could try installing sudo apt install mesa-common-dev libglu1-mesa-dev and then run the build again
Could you add this step in docs as well? I faced this issue too, and it was hard to find this solution :P
  • reply
  • like

April 13, 2020 at 11:04am
Hello there! Thanks for this awesome project.
Is there any way to use a canvas-like api with node-gui?
  • reply
  • like
I know that this is mentioned in #11, but I was just wondering if there was any workaround that you know of.
  • reply
  • like
Some possibilities I considered are:
  • Using node-canvas in conjunction with node-gui
  • Using any native widgets that are canvas-like with node-gui
  • reply
  • like
Will those work?
  • reply
  • like
If so, how do I get it to do so?
  • reply
  • like
And if not, are there any other ways to get a canvas-like api into my nodegui app?
Edited
  • reply
  • like
If so, how do I get it to do so?
This is pretty interesting. I didnt know about node-canvas before. I will need to take a look at it to see if its possible to integrate it. But looks like we can do it.
Similar to those examples. A quick way would be to use the node-canvas api to generate a image url from the canvas and set it to QLabel.
  • reply
  • like
A quick way would be to use the node-canvas api to generate a image url from the canvas and set it to QLabel.
That is a good idea. I will try it out.
Edited
  • reply
  • like
Good luck on your efforts integrating node-canvas :)
  • reply
  • like
And thanks for taking the time to work on this project
  • reply
  • like
I lot of devs like me really appreciate it.
  • reply
  • like

May 8, 2020 at 3:17pm
hi , may I ask why there is no className props for react-nodegui? I'm just curious about it. Thanks!
  • reply
  • like
hi , may I ask why there is no className props for react-nodegui? I'm just curious about it. Thanks!
Hi To understand why there is no className we have to understand that React NodeGui doesnt run inside a browser. The css and elements you see are actually native widget api. The css spec is provided by Qt which supports styling using something they call as ObjectName. An objectName is a somewhat unique name you assign to each widget you create in qt so that you can style them separately. This concept of objectName is what is exposed as id in react nodegui.
But since qt does support assigning same objectName to multiple widgets. You can essentially assign same id to multiple widgets and style them all together (which is somewhat similar to that of className`
  • reply
  • like

June 18, 2020 at 11:59am
Hi, is it possible to remove a cancel button from a QProgressDialog? Normally it could be done with setCancelButton(null) but there is no method like that
  • reply
  • like

August 1, 2020 at 2:07am
Hi To understand why there is no className we have to understand that React NodeGui doesnt run inside a browser. The css and elements you see are actually native widget api. The css spec is provided by Qt which supports styling using something they call as ObjectName. An objectName is a somewhat unique name you assign to each widget you create in qt so that you can style them separately. This concept of objectName is what is exposed as id in react nodegui.
But since qt does support assigning same objectName to multiple widgets. You can essentially assign same id to multiple widgets and style them all together (which is somewhat similar to that of className`
so multiple widgets can have the same object name, but can a widget have multiple object names?
  • reply
  • like

August 10, 2020 at 10:39pm
Hello goodday! I'm enjoying nodeGUI. I was wondering how to access this from an <Button on={buttonHandler}>Click me</Button> call to buttonHandler = { clicked: () => { } } as per https://react.nodegui.org/docs/guides/handle-events except I'm using a class component and I would like this for setState
  • reply
  • like

September 10, 2020 at 7:41pm
hello! i was wondering which is a more active community? here on spectrum, or in slack? i am having troubles joining the slack community as i would prefer to add it to my exiting slack account which is part of a different community. i think i would need an invite rather than a link to the community. anyone here that can help with that?
  • reply
  • like

September 19, 2020 at 3:31pm
hello! i was wondering which is a more active community? here on spectrum, or in slack? i am having troubles joining the slack community as i would prefer to add it to my exiting slack account which is part of a different community. i think i would need an invite rather than a link to the community. anyone here that can help with that?
Dont think there is a slack, and think this chat is abandoned
  • reply
  • like

November 11, 2020 at 1:04pm
Hi, everyone . Is it possible to rename .node and index.js files into your own before building ? using nodegui If so, how, I can not understand
  • reply
  • like

November 17, 2020 at 7:46pm
Why is my new rule component isn't being displayed? Here is my code
  • reply
  • like

December 16, 2020 at 9:24pm
Has anyone built anything somewhat complex with NodeGUI yet?
  • reply
  • like
Is there a showcase anywhere?
  • reply
  • like

December 20, 2020 at 6:42am
Hi! How can I get size of some element or window? I want to subscribe to resize event and collapse side panel if width less then "x" pixels
Edited
  • reply
  • like
Show more messages