lqt5 / lqt

Lua Binding for Qt5
MIT License
74 stars 23 forks source link

how to get QWidget:winId? #16

Open zhu603809832 opened 2 years ago

zhu603809832 commented 2 years ago

I found that the generated XML has winId information, but export qtwidgets meta QWidget. The cpp file does not register Lua's winId interface. So how do I get the winId of QWidget in Lua?

sanikoyes commented 2 years ago

First find the header file where this interface is located in Qt, then you can find the following lqt folder, look at the corresponding header file, modify/uncomment, and you should be able to export;