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

  • <tfoot id='tsSIM'></tfoot>
  • <small id='tsSIM'></small><noframes id='tsSIM'>

    • <bdo id='tsSIM'></bdo><ul id='tsSIM'></ul>

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

        如何使用 PyQt5 設置窗口圖標?

        How to set a window icon with PyQt5?(如何使用 PyQt5 設置窗口圖標?)
      1. <legend id='yf4Nw'><style id='yf4Nw'><dir id='yf4Nw'><q id='yf4Nw'></q></dir></style></legend>
        <i id='yf4Nw'><tr id='yf4Nw'><dt id='yf4Nw'><q id='yf4Nw'><span id='yf4Nw'><b id='yf4Nw'><form id='yf4Nw'><ins id='yf4Nw'></ins><ul id='yf4Nw'></ul><sub id='yf4Nw'></sub></form><legend id='yf4Nw'></legend><bdo id='yf4Nw'><pre id='yf4Nw'><center id='yf4Nw'></center></pre></bdo></b><th id='yf4Nw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yf4Nw'><tfoot id='yf4Nw'></tfoot><dl id='yf4Nw'><fieldset id='yf4Nw'></fieldset></dl></div>
        • <bdo id='yf4Nw'></bdo><ul id='yf4Nw'></ul>
            <tbody id='yf4Nw'></tbody>

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

                1. <tfoot id='yf4Nw'></tfoot>
                  本文介紹了如何使用 PyQt5 設置窗口圖標?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  from PyQt5 import QtWidgets, QtGui
                  from PyQt5.QtWidgets import *
                  from PyQt5.QtCore import *
                  
                  class Application(QMainWindow):
                      def __init__(self):
                          super(Application, self).__init__()
                          self.setWindowIcon(QtGui.QIcon('icon.png'))
                  

                  我正在嘗試設置一個窗口圖標(窗口左上角),但正常圖標卻消失了.

                  I am trying to set a window icon (top left of the window) but the normal icon disappeared instead.

                  我嘗試了許多圖標分辨率(8x8、16x16、32x32、64x64)和擴展名(.png 和 .ico).

                  I tried with many icon resolutions (8x8, 16x16, 32x32, 64x64) and extensions (.png and .ico).

                  我做錯了什么?

                  推薦答案

                  asker 建議的命令對我有用:

                  The command, as suggested by asker, works for me:

                   self.setWindowIcon(QtGui.QIcon('icon.png'))
                  

                  我放了 256x256 png,一切正常.我有 Win 7 pro 64 位,Python 3.5.2 32 位.

                  I put 256x256 png and all was OK. I have Win 7 pro 64 bit, Python 3.5.2 32 bit.

                  這篇關于如何使用 PyQt5 設置窗口圖標?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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時顯示進度條?)

                        <tbody id='0dA02'></tbody>
                        <bdo id='0dA02'></bdo><ul id='0dA02'></ul>
                          <legend id='0dA02'><style id='0dA02'><dir id='0dA02'><q id='0dA02'></q></dir></style></legend>
                          • <tfoot id='0dA02'></tfoot>

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

                            <small id='0dA02'></small><noframes id='0dA02'>

                            主站蜘蛛池模板: 黄色毛片大全 | 国产91九色 | 精品国产高清一区二区三区 | 天天草视频 | 狠狠操天天操 | 国产中文一区二区三区 | 国产一区精品 | 国产真实精品久久二三区 | 曰韩三级 | 欧美色成人 | 免费av毛片 | www久久| 女人精96xxx免费网站p | 国产精品揄拍一区二区久久国内亚洲精 | 成人免费视频网址 | 国产真实精品久久二三区 | 亚洲国产小视频 | 精品欧美一区二区在线观看欧美熟 | 亚洲激情一级片 | av在线播放一区二区 | 国产成人免费视频 | 久久精品一区二区三区四区 | 日日操操操| av毛片| 国产精品久久久久久吹潮日韩动画 | 亚卅毛片 | 色香蕉在线 | 亚洲一区二区免费 | 久草热在线 | 牛牛热在线视频 | 国产中文字幕在线 | 中文字幕在线观看视频一区 | 欧美成人精品一区二区男人看 | 国产亚洲精品美女久久久久久久久久 | 亚洲五码在线 | 波波电影院一区二区三区 | 性网站免费 | 国产97在线视频 | 亚洲综合色视频在线观看 | 不卡av电影在线播放 | 欧美午夜精品 |