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

    <bdo id='Q2ypb'></bdo><ul id='Q2ypb'></ul>
  • <legend id='Q2ypb'><style id='Q2ypb'><dir id='Q2ypb'><q id='Q2ypb'></q></dir></style></legend>

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

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

        Qt 按鈕樣式從 ui 預覽到原始窗口變化

        Qt buttons style varying from ui preview to original window(Qt 按鈕樣式從 ui 預覽到原始窗口變化)
        1. <i id='30tGG'><tr id='30tGG'><dt id='30tGG'><q id='30tGG'><span id='30tGG'><b id='30tGG'><form id='30tGG'><ins id='30tGG'></ins><ul id='30tGG'></ul><sub id='30tGG'></sub></form><legend id='30tGG'></legend><bdo id='30tGG'><pre id='30tGG'><center id='30tGG'></center></pre></bdo></b><th id='30tGG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='30tGG'><tfoot id='30tGG'></tfoot><dl id='30tGG'><fieldset id='30tGG'></fieldset></dl></div>

          <legend id='30tGG'><style id='30tGG'><dir id='30tGG'><q id='30tGG'></q></dir></style></legend>
          <tfoot id='30tGG'></tfoot>
              <tbody id='30tGG'></tbody>
            • <bdo id='30tGG'></bdo><ul id='30tGG'></ul>

              1. <small id='30tGG'></small><noframes id='30tGG'>

                  本文介紹了Qt 按鈕樣式從 ui 預覽到原始窗口變化的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試使用 qt creator 和 PyQt5 設計一個虛擬鍵盤,問題是,按鈕在 qt creator 中看起來很現代,當我執行 python 文件時,我的按鈕樣式很舊.如何獲得原始樣式?

                  I am trying to design a virtual keyboard using qt creator and PyQt5, the problem is, the buttons looked modern in the qt creator and when i executed the python file, I got a very old styling for the buttons. How can i get the original styling?

                  所用按鈕的代碼是,

                      self.Q = QtWidgets.QPushButton(self.KEYBOARD)
                      self.Q.setGeometry(QtCore.QRect(0, 0, 80, 60))
                      font = QtGui.QFont()
                      font.setPointSize(20)
                      self.Q.setFont(font)
                      self.Q.setObjectName("Q")
                  

                  這是qt creator中的ui渲染.

                  This is the ui rendering in qt creator.

                  這是執行python文件時的那個.

                  This is the one when the python file is executed.

                  我的工作環境是,

                  RELEASE=18.1
                  CODENAME=serena
                  EDITION="Cinnamon 64-bit"
                  DESCRIPTION="Linux Mint 18.1 Serena"
                  DESKTOP=Gnome
                  TOOLKIT=GTK
                  NEW_FEATURES_URL=http://www.linuxmint.com/rel_serena_cinnamon_whatsnew.php
                  RELEASE_NOTES_URL=http://www.linuxmint.com/rel_serena_cinnamon.php
                  USER_GUIDE_URL=help:linuxmint
                  GRUB_TITLE=Linux Mint 18.1 Cinnamon 64-bit
                  

                  推薦答案

                  Qt使用QStyle類處理樣式,通常Qt Designer使用樣式融合,所以就這樣顯示,和配置的不匹配操作系統:

                  Qt handles styles using the QStyle class, usually Qt Designer uses the style fusion, so it shows it that way, and this does not match the one that is configured the OS:

                  您的情況的解決方案是使用以下代碼配置使用融合樣式的應用程序:

                  The solution in your case is to configure the application that uses the fusion style with the following code:

                  app = QApplication(sys.argv)
                  app.setStyle("fusion")
                  

                  這篇關于Qt 按鈕樣式從 ui 預覽到原始窗口變化的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='U4kAS'></bdo><ul id='U4kAS'></ul>
                      <legend id='U4kAS'><style id='U4kAS'><dir id='U4kAS'><q id='U4kAS'></q></dir></style></legend>
                        <tbody id='U4kAS'></tbody>
                    • <small id='U4kAS'></small><noframes id='U4kAS'>

                        1. <tfoot id='U4kAS'></tfoot>

                            <i id='U4kAS'><tr id='U4kAS'><dt id='U4kAS'><q id='U4kAS'><span id='U4kAS'><b id='U4kAS'><form id='U4kAS'><ins id='U4kAS'></ins><ul id='U4kAS'></ul><sub id='U4kAS'></sub></form><legend id='U4kAS'></legend><bdo id='U4kAS'><pre id='U4kAS'><center id='U4kAS'></center></pre></bdo></b><th id='U4kAS'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='U4kAS'><tfoot id='U4kAS'></tfoot><dl id='U4kAS'><fieldset id='U4kAS'></fieldset></dl></div>
                            主站蜘蛛池模板: 午夜精品国产精品大乳美女 | 国产黄色一区二区 | 黑人精品xxx一区一二区 | 日韩一区二区三区视频 | 国产黄色免费 | 亚洲欧美在线视频 | 中文字幕高清在线 | 日韩视频一区二区三区 | 成人h片在线观看 | 久久av红桃一区二区小说 | 91久久久久国产一区二区 | 国产在线麻豆精品观看 | 天天爽天天操 | 国产a毛片 | 久久机热| 免费国产网站 | 中国少妇xxxxhd做受 | 窝窝午夜精品一区二区 | 日一日操一操 | 五月婷婷丁香六月 | 欧美黄色一级视频 | 国产精品久久久久永久免费看 | 一区二区三区国产视频 | h网站在线观看 | 欧美久久网 | 日韩免费在线播放 | 成年女人毛片 | 亚洲福利视频一区 | 国产又粗又大又爽 | 日韩免费高清视频 | 国产av毛片 | 成人欧美一区二区三区黑人孕妇 | 日韩在线播放视频 | 亚洲国产成人在线 | 亚洲a级片 | 97青青草| 亚洲成人欧美 | 日韩精品一级 | 一级国产片 | 欧美做爰xxxⅹ性欧美大片 | 综合久久久 |