久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='68n6H'><style id='68n6H'><dir id='68n6H'><q id='68n6H'></q></dir></style></legend>

  • <tfoot id='68n6H'></tfoot>
      <bdo id='68n6H'></bdo><ul id='68n6H'></ul>
    1. <i id='68n6H'><tr id='68n6H'><dt id='68n6H'><q id='68n6H'><span id='68n6H'><b id='68n6H'><form id='68n6H'><ins id='68n6H'></ins><ul id='68n6H'></ul><sub id='68n6H'></sub></form><legend id='68n6H'></legend><bdo id='68n6H'><pre id='68n6H'><center id='68n6H'></center></pre></bdo></b><th id='68n6H'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='68n6H'><tfoot id='68n6H'></tfoot><dl id='68n6H'><fieldset id='68n6H'></fieldset></dl></div>

      <small id='68n6H'></small><noframes id='68n6H'>

        如何在 PyQt5 窗口中嵌入 pptk 查看器

        How to embed a pptk viewer in a PyQt5 window(如何在 PyQt5 窗口中嵌入 pptk 查看器)

            <bdo id='qusIr'></bdo><ul id='qusIr'></ul>
              1. <i id='qusIr'><tr id='qusIr'><dt id='qusIr'><q id='qusIr'><span id='qusIr'><b id='qusIr'><form id='qusIr'><ins id='qusIr'></ins><ul id='qusIr'></ul><sub id='qusIr'></sub></form><legend id='qusIr'></legend><bdo id='qusIr'><pre id='qusIr'><center id='qusIr'></center></pre></bdo></b><th id='qusIr'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qusIr'><tfoot id='qusIr'></tfoot><dl id='qusIr'><fieldset id='qusIr'></fieldset></dl></div>
                <tfoot id='qusIr'></tfoot>
                  <tbody id='qusIr'></tbody>

                <small id='qusIr'></small><noframes id='qusIr'>

                  <legend id='qusIr'><style id='qusIr'><dir id='qusIr'><q id='qusIr'></q></dir></style></legend>

                • 本文介紹了如何在 PyQt5 窗口中嵌入 pptk 查看器的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 PyQt5 (Qt Designer) 構建一個 GUI 程序,它也使用 pptk 庫.這個庫可以繪制大量的點,這對我的目的非常有趣(顯示有限元后處理結果).

                  I am building a GUI program with PyQt5 (Qt Designer) which also uses the pptk library. This library can plot huge amount of points which is very interesting for my purpose (display finite element post processing results).

                  正如 這篇文章中所述,來自 pptk 的查看器類是一個獨立的窗口.像上一篇文章的作者一樣,我想將查看器嵌入到我的 GUI 中.看來我需要寫一些包裝器.經過一番研究,我仍然不知道這是否意味著我必須查看 C++ 代碼來重新編寫一些東西.在那種情況下,它會比我想象的更復雜,我將不得不暫時放棄.最后,如果我可以創建一個可以集成到我的主窗口中的查看器小部件,那將是完美的.

                  As it is explained in this post, the viewer class from pptk is a standalone window. Like the author of the previous post, I would like to embed the viewer in my GUI. It seems that I need to write some wrapper. After some research, I still don't know if that means that I have to look inside the C++ code to re-write some stuff. In that case, it'll be more complex than I thought and I'll have to give up for the moment. In the end, if I could create a viewer widget that can be integrated inside my main window, it would be perfect.

                  有人可以為我澄清一下我必須經歷什么嗎?

                  Can someone please clarify for me what I have to go through?

                  推薦答案

                  下面是一個演示腳本,展示了如何將查看器添加到布局中.我無法在 Windows 上測試它,但在 Linux 上(沒有 win32gui 部分),我得到的結果如下所示.可以看到,沒有奇怪的邊框,窗口可以正常自由調整大小.

                  Below is a demo script that shows how to add the viewer to a layout. I cannot test it on Windows, but on Linux (without the win32gui part), I get the results show below. As you can see, there is no weird border, and the window can be freely resized as normal.

                  from PyQt5 import QtWidgets, QtGui
                  import numpy as np
                  import pptk
                  import win32gui
                  import sys
                  
                  class MainWindow(QtWidgets.QMainWindow):
                      def __init__(self):
                          super(MainWindow, self).__init__()
                  
                          widget = QtWidgets.QWidget()
                          layout = QtWidgets.QGridLayout(widget)
                          self.setCentralWidget(widget)
                  
                          self.cloudpoint = np.random.rand(100, 3)
                          self.v = pptk.viewer(self.cloudpoint)
                          hwnd = win32gui.FindWindowEx(0, 0, None, "viewer")
                          self.window = QtGui.QWindow.fromWinId(hwnd)    
                          self.windowcontainer = self.createWindowContainer(self.window, widget)
                  
                          layout.addWidget(self.windowcontainer, 0, 0)
                  
                  if __name__ == '__main__':
                  
                      app = QtWidgets.QApplication(sys.argv)
                      app.setStyle("fusion")
                      form = MainWindow()
                      form.setWindowTitle('PPTK Embed')
                      form.setGeometry(100, 100, 600, 500)
                      form.show()
                      sys.exit(app.exec_())
                  

                  這篇關于如何在 PyQt5 窗口中嵌入 pptk 查看器的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to bind a function to an Action from Qt menubar?(如何將函數綁定到 Qt 菜單欄中的操作?)
                  PyQt progress jumps to 100% after it starts(PyQt 啟動后進度躍升至 100%)
                  How to set yaxis tick label in a fixed position so that when i scroll left or right the yaxis tick label should be visible?(如何將 yaxis 刻度標簽設置在固定位置,以便當我向左或向右滾動時,yaxis 刻度標簽應該可見
                  `QImage` constructor has unknown keyword `data`(`QImage` 構造函數有未知關鍵字 `data`)
                  Change x-axis ticks to custom strings(將 x 軸刻度更改為自定義字符串)
                  How to show progress bar while saving file to excel in python?(如何在python中將文件保存為excel時顯示進度條?)
                • <small id='8Qz8S'></small><noframes id='8Qz8S'>

                • <tfoot id='8Qz8S'></tfoot>

                          <bdo id='8Qz8S'></bdo><ul id='8Qz8S'></ul>
                            <tbody id='8Qz8S'></tbody>
                          1. <legend id='8Qz8S'><style id='8Qz8S'><dir id='8Qz8S'><q id='8Qz8S'></q></dir></style></legend>
                            <i id='8Qz8S'><tr id='8Qz8S'><dt id='8Qz8S'><q id='8Qz8S'><span id='8Qz8S'><b id='8Qz8S'><form id='8Qz8S'><ins id='8Qz8S'></ins><ul id='8Qz8S'></ul><sub id='8Qz8S'></sub></form><legend id='8Qz8S'></legend><bdo id='8Qz8S'><pre id='8Qz8S'><center id='8Qz8S'></center></pre></bdo></b><th id='8Qz8S'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='8Qz8S'><tfoot id='8Qz8S'></tfoot><dl id='8Qz8S'><fieldset id='8Qz8S'></fieldset></dl></div>
                            主站蜘蛛池模板: 欧美成人hd | 久久久久久久久久久久久9999 | 国产日韩欧美中文字幕 | 中文字幕在线人 | 午夜男人的天堂 | 日韩国产欧美一区 | 在线免费观看黄a | 国产精品久久久久久模特 | 精品国产久| 国产精品视频偷伦精品视频 | 最新中文字幕在线 | 一级片在线免费播放 | 一级毛片免费 | 成人久久视频 | 国产99视频精品免费视频7 | 亚洲男人的天堂网站 | 日韩网 | 中文字幕第十五页 | 中文字幕亚洲视频 | 欧美黄色一区 | 91免费电影 | 国产中文字幕亚洲 | 成人午夜性成交 | 欧洲一区二区在线 | 精品国产精品一区二区夜夜嗨 | 亚洲综合99 | 最新黄色毛片 | 激情a | 91网视频| 国产一区二区三区在线看 | 天天操天天干天天爽 | 在线中文字幕亚洲 | 中日字幕大片在线播放 | 欧美精品a∨在线观看不卡 国产精品久久国产精品 | 亚洲综合资源 | 国产日产精品一区二区三区四区 | 成人久久18免费网站麻豆 | 国产综合久久 | 国产精品夜间视频香蕉 | 免费成人毛片 | 一区二区亚洲 |