Qt:Документация 4.3.2/qtablewidgetselectionrange

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] QTableWidgetSelectionRange Class Reference
[модуль QtGui ]

The QTableWidgetSelectionRange class provides a container for storing a selection range in a QTableWidget. Далее...

 #include <QTableWidgetSelectionRange>

[править] Открытые функции


[править] Подробное описание

The QTableWidgetSelectionRange class provides a container for storing a selection range in a QTableWidget.

The QTableWidgetSelectionRange class stores the top left and bottom right rows and columns of a selection range in a table. The selections in the table may consist of several selection ranges.

See also QTableWidget.


[править] Описание функций-членов

[править]
QTableWidgetSelectionRange::QTableWidgetSelectionRange ()

Constructs an table selection range, i.e. a range whose rowCount() and columnCount() are 0.

[править]
QTableWidgetSelectionRange::QTableWidgetSelectionRange ( int top, int left, int bottom, int right )

Constructs the table selection range from the given top, left, bottom and right table rows and columns.

See also topRow(), leftColumn(), bottomRow(), and rightColumn().

[править]
QTableWidgetSelectionRange::QTableWidgetSelectionRange ( const QTableWidgetSelectionRange & other )

Constructs a the table selection range by copying the given other table selection range.

[править]
QTableWidgetSelectionRange::~QTableWidgetSelectionRange ()

Destroys the table selection range.

[править]
int QTableWidgetSelectionRange::bottomRow () const

Returns the bottom row of the range.

See also topRow(), rightColumn(), and rowCount().

[править]
int QTableWidgetSelectionRange::columnCount () const

Returns the number of columns in the range.

This is equivalent to rightColumn() - leftColumn() + 1.

Эта функция была введена в Qt 4.1.

See also rowCount(), leftColumn(), and rightColumn().

[править]
int QTableWidgetSelectionRange::leftColumn () const

Returns the left column of the range.

See also rightColumn(), topRow(), and columnCount().

[править]
int QTableWidgetSelectionRange::rightColumn () const

Returns the right column of the range.

See also leftColumn(), bottomRow(), and columnCount().

[править]
int QTableWidgetSelectionRange::rowCount () const

Returns the number of rows in the range.

This is equivalent to bottomRow() - topRow() + 1.

Эта функция была введена в Qt 4.1.

See also columnCount(), topRow(), and bottomRow().

[править]
int QTableWidgetSelectionRange::topRow () const

Returns the top row of the range.

See also bottomRow(), leftColumn(), and rowCount().



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2