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

    <bdo id='YWjdr'></bdo><ul id='YWjdr'></ul>
    <tfoot id='YWjdr'></tfoot>

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

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

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

        如何使用 PyQt 更改光標形狀?

        How can I change the cursor shape with PyQt?(如何使用 PyQt 更改光標形狀?)

          <tbody id='0l1f7'></tbody>

        1. <tfoot id='0l1f7'></tfoot>

                  <bdo id='0l1f7'></bdo><ul id='0l1f7'></ul>
                • <small id='0l1f7'></small><noframes id='0l1f7'>

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

                  問題描述

                  我有一個簡單的應用程序,它運行的進程可能會持續幾分鐘才能完成.我正在嘗試向用戶提供它正在處理請求的指示 - 例如將光標更改為沙漏.

                  I have a simple application that runs a process that can last for several minutes before completing. I am trying to provide an indication to the user that it is processing the request - such as changing the cursor to an hourglass.

                  但我不能讓它正常工作.我所有的嘗試都導致錯誤或無效.而且我似乎錯誤地調用了光標形狀,因為 PyQt4.Qt.WaitCursor 返回模塊不包含它的錯誤.

                  But I cannot quite get it to work right. All of my attempts have resulted in either an error or had no effect. And I seem to be calling the cursor shapes incorrectly, since PyQt4.Qt.WaitCursor returns an error that the module does not contain it.

                  向用戶指示進程正在運行的正確方法是什么?

                  What is the correct way to indicate to the user that the process is running?

                  推薦答案

                  我認為 QApplication.setOverrideCursor 就是你要找的東西:

                  I think QApplication.setOverrideCursor is what you're looking for:

                  PyQt5:

                  from PyQt5.QtCore import Qt
                  from PyQt5.QtWidgets import QApplication
                  ...
                  QApplication.setOverrideCursor(Qt.WaitCursor)
                  # do lengthy process
                  QApplication.restoreOverrideCursor()
                  

                  PyQt4:

                  from PyQt4.QtCore import Qt
                  from PyQt4.QtGui import QApplication
                  ...
                  QApplication.setOverrideCursor(Qt.WaitCursor)
                  # do lengthy process
                  QApplication.restoreOverrideCursor()
                  

                  這篇關于如何使用 PyQt 更改光標形狀?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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時顯示進度條?)
                  <legend id='cTMMk'><style id='cTMMk'><dir id='cTMMk'><q id='cTMMk'></q></dir></style></legend>

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

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

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

                            主站蜘蛛池模板: 国产传媒视频在线观看 | 日本在线小视频 | www.啪啪| 亚洲香蕉在线 | 国产精品二区一区二区aⅴ污介绍 | 国产日韩欧美 | 手机在线免费看av | 动漫av在线 | 91视频日本 | 97人人干| 91性视频| 福利视频在线 | 成人免费公开视频 | 国产成人精品视频 | 欧美精品999 | 黄色一级大片在线免费看产 | 欧美性猛交xxxx | 国产主播99 | www超碰 | 婷婷五月在线视频 | 成人精品免费视频 | 欧美日韩一区二区在线观看 | 欧美性猛交xx| 日本国产视频 | 三级黄视频 | 色婷婷六月 | 成人深夜视频 | 精品视频一区二区三区 | 在线视频福利 | 一本一道久久a久久精品蜜桃 | 日韩中文字幕一区 | 亚洲天天干 | 超碰在线中文字幕 | 99久久婷婷 | 欧美人与性动交α欧美精品 | aaa一级片 | 亚洲 欧美 另类 综合 偷拍 | 国产又粗又长又爽 | 五月色丁香 | 精品蜜桃一区二区三区 | 日本一本草久p |