Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QTableWidgetSelectionRange Class

TheQTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.More...

Header:#include <QTableWidgetSelectionRange>

Public Functions

QTableWidgetSelectionRange()
QTableWidgetSelectionRange(int top, int left, int bottom, int right)
QTableWidgetSelectionRange(const QTableWidgetSelectionRange & other)
~QTableWidgetSelectionRange()
intbottomRow() const
intcolumnCount() const
intleftColumn() const
intrightColumn() const
introwCount() const
inttopRow() const

Detailed Description

TheQTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.

TheQTableWidgetSelectionRange 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.

Note:If the item within the selection range is marked as not selectable, e.g.,itemFlags() & Qt::ItemIsSelectable == 0 then it will not appear in the selection range.

See alsoQTableWidget.

Member Function Documentation

QTableWidgetSelectionRange::QTableWidgetSelectionRange()

Constructs an table selection range, i.e. a range whoserowCount() andcolumnCount() are 0.

QTableWidgetSelectionRange::QTableWidgetSelectionRange(int top,int left,int bottom,int right)

Constructs the table selection range from the giventop,left,bottom andright table rows and columns.

See alsotopRow(),leftColumn(),bottomRow(), andrightColumn().

QTableWidgetSelectionRange::QTableWidgetSelectionRange(constQTableWidgetSelectionRange & other)

Constructs a the table selection range by copying the givenother table selection range.

QTableWidgetSelectionRange::~QTableWidgetSelectionRange()

Destroys the table selection range.

int QTableWidgetSelectionRange::bottomRow() const

Returns the bottom row of the range.

See alsotopRow(),rightColumn(), androwCount().

int QTableWidgetSelectionRange::columnCount() const

Returns the number of columns in the range.

This is equivalent torightColumn() -leftColumn() + 1.

This function was introduced in Qt 4.1.

See alsorowCount(),leftColumn(), andrightColumn().

int QTableWidgetSelectionRange::leftColumn() const

Returns the left column of the range.

See alsorightColumn(),topRow(), andcolumnCount().

int QTableWidgetSelectionRange::rightColumn() const

Returns the right column of the range.

See alsoleftColumn(),bottomRow(), andcolumnCount().

int QTableWidgetSelectionRange::rowCount() const

Returns the number of rows in the range.

This is equivalent tobottomRow() -topRow() + 1.

This function was introduced in Qt 4.1.

See alsocolumnCount(),topRow(), andbottomRow().

int QTableWidgetSelectionRange::topRow() const

Returns the top row of the range.

See alsobottomRow(),leftColumn(), androwCount().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp