Skip to content

Access underlying QWidget for Painting, etc. #235

@swittk

Description

@swittk

Hi there. I've been trying out simple programs with React NodeGUI. Works well, no complaints yet :) Thing is, I'm starting to write a graphing component. With Pure NodeGUI, I see we have the QPainter, which can draw into components using the callback addEventListener(WidgetEventTypes.Paint, ). However, with React-NodeGUI, I couldn't really access the underlying QWidget from the View component.

Right now I'm tinkering with Refs. Using a callback ref acquiring function on , I found that the underlying Refs are RNView objects, and has a property of "native" which shows up as QWidget in node console, however, the QWidget object itself has no properties? Also, there's no function addEventListener to be called (calling addEventListener simply says is not a function)

So I guess what I want to happen is an ability to either access the underlying QWidget and do stuff with it, or an alternative; a new Component to paint in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions