Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QTableWidget support #382

Open
gangadharjannu opened this issue Nov 1, 2023 · 0 comments
Open

QTableWidget support #382

gangadharjannu opened this issue Nov 1, 2023 · 0 comments

Comments

@gangadharjannu
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant