Qt Buttons/bg: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
(Add "cleanup" tag)
Line 1: Line 1:
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}
[[Category:Developing_with_Qt::General]]
[[Category:Developing_with_Qt::General]]



Revision as of 16:43, 3 March 2015

This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

[toc align_right="yes" depth="3"]

Български English Spanish

Бутони в Qt

Общ преглед

Като усъвършенствана среда за създаване на графични потребителски интерфейси Qt предлага разнообразие от бутони, за да задоволи различни желания. Класовете, които имплементират различни видове бутони наследяват "QAbstractButton":http://doc.qt.nokia.com/4.7/qabstractbutton.html. QAbstractButton наследява "QWidget":http://doc.qt.nokia.com/4.7/qwidget.html и базов абстрактен клас за бутони.

Сигнали

QAbstractButton предоставя следните сигнали:

  • void clicked ( bool checked = false )
  • void pressed ()
  • void released ()
  • void toggled ( bool checked )

Видове бутони

QPushButton

"QPushButton":http://doc.qt.nokia.com/4.7/qpushbutton.html е команден бутон, който може да се персонализира. За "повече информация и пример как се използва QPushButton моля, прочете следната статия.":http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton_Bulgarian.

push button

QCheckBox

"QCheckBox":http://doc.qt.nokia.com/4.7/qcheckbox.html е бутон, който изглежда като кутия с отметка и текст до нея.

checkbox

QRadioButton

"QRadioButton":http://doc.qt.nokia.com/4.7/qradiobutton.html е радио бутон с текст

radio button

QToolButton

"QToolButton":http://doc.qt.nokia.com/4.7/qtoolbutton.html е бутон за бърз достъп, който най-често се вгражда в "QToolBar":http://doc.qt.nokia.com/4.7/qtoolbar.html

button inside toolbar

Вижте още

"Basic Qt Programming Tutorial":http://developer.qt.nokia.com/wiki/Basic_Qt_Programming_Tutorial "How to Use QPushButton":http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton