react-nodegui icon indicating copy to clipboard operation
react-nodegui copied to clipboard

Question: Any plans for native menu items?

Open wcastand opened this issue 6 years ago • 5 comments

Hello, look like a really promising project.

Do you know if it's possible and if it would be hard to provide a way to create native menu like File Edit, etc ?

Something like this : https://electronjs.org/docs/api/menu

maybe even something like dock menu : https://electronjs.org/docs/tutorial/macos-dock

I didn't use Qt in many many years but would making the bindings be a hard thing to do?

wcastand avatar Aug 28 '19 12:08 wcastand

Hi @wcastand Its not implemented yet, but Yes, we can support this since Qt supports it. It will be implemented soon.

a7ul avatar Aug 30 '19 07:08 a7ul

is there anyway to help? I won't pretend my 10 years old Qt coding skill will be useful to do it myself X) but let me know if I can help with testing or something else :)

wcastand avatar Aug 30 '19 09:08 wcastand

Yes, yes, You can follow the contributors guide to help with the project, docs, testing. https://nodegui.github.io/nodegui/#/development/README @wcastand It is fairly straightforward to get started. I would recommend you start by adding an unexported method to an existing widget. For example: You could add the corresponding Qt method to QProgressbar https://doc.qt.io/qt-5/qprogressbar.html#textVisible-prop to get a grip on it.

Once that is done maybe you can helpout with QMenu which achieves the native menu items

This PR can be used as a guide https://github.com/nodegui/nodegui/issues/36 https://github.com/nodegui/nodegui/pull/39

a7ul avatar Aug 30 '19 09:08 a7ul

You can always use this issue as a discussion channel if you are in need of help.

a7ul avatar Aug 30 '19 09:08 a7ul

I'll probably take a look this weekend then. Thanks for the guide :)

wcastand avatar Aug 30 '19 09:08 wcastand