Skip to content

QTableWidget support #382

Open
Open
@gangadharjannu

Description

@gangadharjannu

Hello There,

I am exploring react-nodegui and so far it is good in terms of ease of use.

I am wondering how do we implement table or any other component that is not yet listed in react-nodegui but supported in nodegui ?

For example, I am trying to display table in react-nodegui but not sure what to do ?

I have got the code to display from nodegui but how to do this in react-nodegui ?

const table = new QTableWidget(2, 3);
table.setHorizontalHeaderLabels(["first", "second", "third"]);

const cell00 = new QTableWidgetItem("C00");
const cell01 = new QTableWidgetItem("C01");
const cell10 = new QTableWidgetItem("C10");
const cell11 = new QTableWidgetItem("C11");

table.setItem(0, 0, cell00);
table.setItem(0, 1, cell01);
table.setItem(1, 0, cell10);
table.setItem(1, 1, cell11);

// What to do with table ?

I debugged and see that table is of type widget.

Is there any way we can convert widget into react component ?

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