久久久久久久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>
                            主站蜘蛛池模板: 狠狠骚 | 久久久蜜桃 | 久久久久久免费精品一区二区三区 | 日韩视频区 | 国产精品久久久久久久久久 | 亚洲视频手机在线 | 精品国产乱码久久久久久丨区2区 | 免费高清av | 色综合99 | 黄色网址在线播放 | 久久国产精品一区二区三区 | 99精品国产一区二区青青牛奶 | 精品伦精品一区二区三区视频 | 欧美寡妇偷汉性猛交 | 国产一区三区在线 | 免费黄色片在线观看 | 91亚洲精 | 精品一区在线 | 国产成人一区二区三区 | 精品久久久久久久久久久 | 日本不卡视频在线播放 | 91社区在线观看 | 亚洲综合色视频在线观看 | 精品区 | 久久99精品久久 | www.操com| 精品精品视频 | 久久精品一级 | av免费网址| 四季久久免费一区二区三区四区 | 亚洲精品乱码久久久久久久久 | 国产精品欧美精品日韩精品 | 成人一区二区视频 | 激情久久网| 国产精品久久久久永久免费观看 | 国产综合视频 | 亚洲精品中文在线 | 日本天天操 | 亚洲欧美在线视频 | 日韩和的一区二区 | 午夜影院在线观看免费 |