Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Can qt integrate with software developed by tk
QtWS25 Last Chance

Can qt integrate with software developed by tk

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
3 Posts 3 Posters 606 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fangyu
    wrote on 12 Jul 2020, 00:51 last edited by
    #1

    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?

    P J 2 Replies Last reply 12 Jul 2020, 01:54
    0
    • F fangyu
      12 Jul 2020, 00:51

      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?

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 12 Jul 2020, 01:54 last edited by
      #2

      @fangyu please don't double post

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • F fangyu
        12 Jul 2020, 00:51

        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?

        J Offline
        J Offline
        JKSH
        Moderators
        wrote on 14 Jul 2020, 03:38 last edited by
        #3

        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.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        2

        1/3

        12 Jul 2020, 00:51

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved