<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # QRadioButton Class Reference ## [[QtGui](index.htm) module] 該QRadioButton小工具提供了一個文本標籤的單選按鈕。[More...](#details) 繼承[QAbstractButton](qabstractbutton.html)。 ### Methods * `__init__ (self, QWidget?parent?=?None)` * `__init__ (self, QString?text, QWidget?parent?=?None)` * `bool event (self, QEvent?e)` * `bool hitButton (self, QPoint)` * `initStyleOption (self, QStyleOptionButton?button)` * `QSize minimumSizeHint (self)` * `mouseMoveEvent (self, QMouseEvent)` * `paintEvent (self, QPaintEvent)` * `QSize sizeHint (self)` * * * ## Detailed Description 該QRadioButton小工具提供了一個文本標籤的單選按鈕。 一個QRadioButton是一個選項按鈕,可以打開(選中)或關閉(未選中) 。單選按鈕通常與選擇了“一對多”呈現給用戶。在一組單選按鈕,在同一時間只有一個單選按鈕可以檢查,如果用戶選擇另一個按鈕,則之前選中的按鈕被關閉。 單選按鈕[autoExclusive](qabstractbutton.html#autoExclusive-prop)在默認情況下。如果自動獨家啟用,屬于同一個父控件單選按鈕的行為,好像他們是同一個專屬按鈕組的一部分。如果需要多個專屬按鈕組對屬于同一個父部件單選按鈕,把它們放到一個[QButtonGroup](qbuttongroup.html)。 每當一個按鈕打開或關閉它發出的[toggled](qabstractbutton.html#toggled)()信號。連接到這個信號,如果你希望每次觸發一個動作按鈕的狀態發生改變。使用[isChecked](qabstractbutton.html#checked-prop)()以查看是否已選擇了一個特定的按鈕。 一樣[QPushButton](qpushbutton.html),單選按鈕顯示文本和可選的小圖標。該圖標設置[setIcon](qabstractbutton.html#icon-prop)( ) 。該文本可以在構造函數或設置[setText](qabstractbutton.html#text-prop)( ) 。快捷鍵可以首選使用的字符在文本中的&符號前面的指定。例如: ``` QRadioButton *button = new QRadioButton("Search from the &cursor", this); ``` 在這個例子中,快捷鍵是_Alt+c_。請參閱[QShortcut](qshortcut.html#mnemonic)有關詳細信息的文檔(顯示的實際符號,使用“\u0026\u0026” ) 。 重要繼承的成員:[text](qabstractbutton.html#text-prop)( )[setText](qabstractbutton.html#text-prop)( )[text](qabstractbutton.html#text-prop)( )[setDown](qabstractbutton.html#down-prop)( )[isDown](qabstractbutton.html#down-prop)( )[autoRepeat](qabstractbutton.html#autoRepeat-prop)( )[group](qabstractbutton.html#group)( )[setAutoRepeat](qabstractbutton.html#autoRepeat-prop)( )[toggle](qabstractbutton.html#toggle)( )[pressed](qabstractbutton.html#pressed)( )[released](qabstractbutton.html#released)( )[clicked](qabstractbutton.html#clicked)()和[toggled](qabstractbutton.html#toggled)( ) 。 | ![Screenshot of a Plastique radio button](https://img.kancloud.cn/db/b7/dbb7778e4e6bdc01d19280b8b53889d8_191x35.png) | A radio button shown in the [Plastique widget style](index.htm). | | ![Screenshot of a Windows XP radio button](https://img.kancloud.cn/11/2c/112c49b1b2dd91476663fac53c9aabf8_191x31.png) | A radio button shown in the [Windows XP widget style](index.htm). | | ![Screenshot of a Macintosh radio button](https://img.kancloud.cn/4a/83/4a8343024cba8bd09560310760df1c2a_183x33.png) | A radio button shown in the [Macintosh widget style](index.htm). | * * * ## Method Documentation ``` QRadioButton.__init__ (self, QWidget?parent?=?None) ``` 該_parent_的說法,如果不是沒有,原因_self_通過Qt的,而不是PyQt的擁有。 構造一個單選按鈕,用給定的_parent_,但沒有文字或像素圖。 該_parent_參數被傳遞到[QAbstractButton](qabstractbutton.html)構造函數。 ``` QRadioButton.__init__ (self, QString?text, QWidget?parent?=?None) ``` 該_parent_的說法,如果不是沒有,原因_self_通過Qt的,而不是PyQt的擁有。 構造一個單選按鈕,用給定的_parent_和_text_字符串。 該_parent_參數被傳遞到[QAbstractButton](qabstractbutton.html)構造函數。 ``` bool QRadioButton.event (self, QEvent?e) ``` 從重新實現[QObject.event](qobject.html#event)( ) 。 ``` bool QRadioButton.hitButton (self, QPoint) ``` 從重新實現[QAbstractButton.hitButton](qabstractbutton.html#hitButton)( ) 。 ``` QRadioButton.initStyleOption (self, QStyleOptionButton?button) ``` 初始化_option_與其它的值[QRadioButton](qradiobutton.html)。當他們需要一個這種方法是有用的子類[QStyleOptionButton](qstyleoptionbutton.html),但不希望在所有的信息填寫自己。 **See also** [QStyleOption.initFrom](qstyleoption.html#initFrom)( ) 。 ``` QSize QRadioButton.minimumSizeHint (self) ``` [](qsize.html) [從重新實現](qsize.html)[QWidget.minimumSizeHint](qwidget.html#minimumSizeHint-prop)( ) 。 此功能被引入Qt的4.8 。 ``` QRadioButton.mouseMoveEvent (self, QMouseEvent) ``` 從重新實現[QWidget.mouseMoveEvent](qwidget.html#mouseMoveEvent)( ) 。 ``` QRadioButton.paintEvent (self, QPaintEvent) ``` 從重新實現[QWidget.paintEvent](qwidget.html#paintEvent)( ) 。 ``` QSize QRadioButton.sizeHint (self) ``` [](qsize.html) [從重新實現](qsize.html)[QWidget.sizeHint](qwidget.html#sizeHint-prop)( ) 。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看