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

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

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

        <bdo id='LA8yW'></bdo><ul id='LA8yW'></ul>

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

        給定一個 pyqtBoundSignal 如何確定插槽?

        Given a pyqtBoundSignal how to determine the slot?(給定一個 pyqtBoundSignal 如何確定插槽?)

      1. <tfoot id='IW417'></tfoot>
          • <bdo id='IW417'></bdo><ul id='IW417'></ul>
                <tbody id='IW417'></tbody>

                • <small id='IW417'></small><noframes id='IW417'>

                  <i id='IW417'><tr id='IW417'><dt id='IW417'><q id='IW417'><span id='IW417'><b id='IW417'><form id='IW417'><ins id='IW417'></ins><ul id='IW417'></ul><sub id='IW417'></sub></form><legend id='IW417'></legend><bdo id='IW417'><pre id='IW417'><center id='IW417'></center></pre></bdo></b><th id='IW417'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='IW417'><tfoot id='IW417'></tfoot><dl id='IW417'><fieldset id='IW417'></fieldset></dl></div>
                  <legend id='IW417'><style id='IW417'><dir id='IW417'><q id='IW417'></q></dir></style></legend>
                  本文介紹了給定一個 pyqtBoundSignal 如何確定插槽?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  給定信號,我如何確定特定信號連接到的插槽?

                  Given the signal, how can I determine the slot that a particular signal is connected to?

                  我熟悉如何連接信號和插槽,這更多是出于調試目的.

                  I am familiar with how to connect signal and slots, this is more for debugging purposes.

                  我正在使用 pyqt5,python 2.7

                  I am using pyqt5, python 2.7

                  推薦答案

                  沒有the"槽這個東西,因為一個信號可以連接多個槽,或者多個其他信號,或者同一個信號/槽多個次.但無論如何,沒有內置的 API 可以列出所有當前的連接.

                  There is no such thing as "the" slot, because a signal can be connected to multiple slots, or multiple other signals, or the same signal/slot multiple times. But in any case, there is no built-in API that can list all the current connections.

                  您可以獲得一個信號的當前連接的計數,如下所示:

                  You can get a count of the current connections for a signal, like this:

                      count = button.receivers(button.clicked)
                  

                  還有 connectNotify 和 disconnectNotify - 但這并沒有讓你走得更遠,因為重新實現這些方法只會告訴您對象的哪些信號已連接或斷開.

                  There is also connectNotify and disconnectNotify - but that doesn't get you much further, because reimplementing those methods will only tell you which signals were connected or disconnected for the object.

                  QtTest 模塊有 QSignalSpy(僅在 PyQt5 中可用),它可以記錄給定信號的所有發射.但是,同樣,這只會給你發送的參數,而不是它們被發送到的地方.

                  The QtTest module has QSignalSpy (only available in PyQt5), which can record all the emissions of a given signal. But, again, that will only give you the arguments that were sent, rather than where they were sent to.

                  我想 Qt 不為此提供 API 的原因是連接項的列表可能非常不穩定.

                  I suppose the reason why Qt doesn't provide an API for this is that the list of connected items is potentially very volatile.

                  PS:

                  我忘了提到 dumpObjectInfo,它顯然做了什么您要求,但只能與 Qt 的調試版本一起使用 - 對于發布版本,它什么也不做.

                  I forgot to mention dumpObjectInfo, which apparently does what you're asking for, but will only work with a debug build of Qt - for release builds, it does nothing.

                  這篇關于給定一個 pyqtBoundSignal 如何確定插槽?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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時顯示進度條?)

                  • <bdo id='VvRFe'></bdo><ul id='VvRFe'></ul>
                    1. <small id='VvRFe'></small><noframes id='VvRFe'>

                            <tbody id='VvRFe'></tbody>
                          <legend id='VvRFe'><style id='VvRFe'><dir id='VvRFe'><q id='VvRFe'></q></dir></style></legend>

                          <tfoot id='VvRFe'></tfoot>
                          <i id='VvRFe'><tr id='VvRFe'><dt id='VvRFe'><q id='VvRFe'><span id='VvRFe'><b id='VvRFe'><form id='VvRFe'><ins id='VvRFe'></ins><ul id='VvRFe'></ul><sub id='VvRFe'></sub></form><legend id='VvRFe'></legend><bdo id='VvRFe'><pre id='VvRFe'><center id='VvRFe'></center></pre></bdo></b><th id='VvRFe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VvRFe'><tfoot id='VvRFe'></tfoot><dl id='VvRFe'><fieldset id='VvRFe'></fieldset></dl></div>
                            主站蜘蛛池模板: 美女一级a毛片免费观看97 | 亚洲成人中文字幕 | 国产成人综合在线 | 久久国产成人 | 伊人网91 | 国产视频一区在线 | 欧美黑人狂野猛交老妇 | 亚洲精品久久久久中文字幕欢迎你 | 精品久久久久久久久亚洲 | 日韩伦理一区二区 | 99久久精品一区二区成人 | 蜜桃臀av一区二区三区 | 久久精品91| 在线播放中文字幕 | 国产在线精品一区 | 亚洲一区二区三区在线视频 | 久热伊人 | 久久91av| 91视频亚洲 | 精品久久香蕉国产线看观看亚洲 | 在线日韩欧美 | 久久爱综合 | 九色av| 国产视频1| 国产成人一区二区三区 | 精品九九| 81精品国产乱码久久久久久 | 久久国产一区二区 | 国产目拍亚洲精品99久久精品 | 亚洲 中文 欧美 日韩 在线观看 | a级大片免费观看 | 免费黄色av网站 | 色视频欧美 | 久久这里只有精品首页 | 亚洲国产在| 天天干天天玩天天操 | 99精品国自产在线 | 色视频在线免费观看 | 国产精品免费一区二区三区 | 毛片区 | 亚洲综合久久久 |