Can qt integrate with software developed by tk
-
How to implement access window handle in ubuntu system? I have a program written in tk, and I want to access its window through qt. Can be obtained through "findwindows" in the windows system, so is there a similar API in the ubuntu system. If not, can qt integrate with the software developed by tk?
-
Hi, and welcome!
@fangyu said in Can qt integrate with software developed by tk:
I have a program written in tk, and I want to access its window through qt.
Can you describe what you mean by "access its window through Qt"? Are you trying to control the other window from a Qt application?
Can be obtained through "findwindows" in the windows system, so is there a similar API in the ubuntu system.
You could get the window ID (see https://stackoverflow.com/questions/151407/how-to-get-an-x11-window-from-a-process-id for example), and then call
QWindow::fromWinId()
(see https://doc.qt.io/qt-5/qwindow.html#fromWinId)However, this is not properly supported so you might not be able to do everything you want.
can qt integrate with the software developed by tk?
Not directly.