⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qtableselection.3qt

📁 Qt/Embedded是一个多平台的C++图形用户界面应用程序框架
💻 3QT
字号:
.TH QTableSelection 3qt "10 November 2000" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2000 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQTableSelection \- The QTableSelection provides access to the selected area in a QTable<h1 align=center>QTableSelection Class Reference.br<small>[ table module ]</small></h1>.br.PP\fC#include <qtable.h>\fR.PP.SS "Public Members".in +1c.ti -1c.BI "\fBQTableSelection\fR () ".br.ti -1c.BI "void \fBinit\fR ( int " "row" ", int col ) ".br.ti -1c.BI "void \fBexpandTo\fR ( int " "row" ", int col ) ".br.ti -1c.BI "bool \fBoperator==\fR ( const QTableSelection & s ) const".br.ti -1c.BI "int \fBtopRow\fR () const".br.ti -1c.BI "int \fBbottomRow\fR () const".br.ti -1c.BI "int \fBleftCol\fR () const".br.ti -1c.BI "int \fBrightCol\fR () const".br.ti -1c.BI "int \fBanchorRow\fR () const".br.ti -1c.BI "int \fBanchorCol\fR () const".br.ti -1c.BI "bool \fBisActive\fR () const".br.in -1c.SH DESCRIPTIONThe QTableSelection provides access to the selected area in a QTable..PPThe selection is a rectangular set of cells. One of the rectangle's cells is called the anchor cell; that cell is the first selected. The init() function sets the anchor and sets the selection rectangle to just that cell; the expandTo() function expands the selection rectangle..PPThere are various access functions to get the area: anchorRow() and anchorCol() return the achor's position, and leftCol(), rightCol(), topRow() and bottomRow() return the rectangle's four edges. All four are in the selection..PPA newly created QTableSelection is inactive -- isActive() returns FALSE. You must use init() and expandTo() to activate it..PPSee also QTable, QTable::addSelection() and QTable::selection()..SH MEMBER FUNCTION DOCUMENTATION.SH "QTableSelection::QTableSelection ()"Creates an inactive selection. Use init() and expandTo() to activate it..SH "int QTableSelection::anchorCol () const"Returns the anchor column of the selection..SH "int QTableSelection::anchorRow () const"Returns the anchor row of the selection..SH "int QTableSelection::bottomRow () const"Returns the bottom row of the selection..SH "void QTableSelection::expandTo ( int row, int col )"Expands the selection to \fIrow, col.\fR The new selection rectangle is the bounding rectangle of \fIrow, col\fR and the old selection rectangle. After calling that function, the selections is active..PPIf you didn't call init() yet, this function does nothing..PPSee also init() and isActive()..SH "void QTableSelection::init ( int row, int col )"Sets the selection anchor to row \fIrow\fR and column \fIcol\fR and sets the selection to just that cell..PPSee also expandTo() and isActive()..SH "bool QTableSelection::isActive () const"Returns whether the selection is active or not. A selection is active after init() and expandTo() has beem called..SH "int QTableSelection::leftCol () const"Returns the left column of the selection..SH "bool QTableSelection::operator== ( const QTableSelection & s ) const"Returns TRUE if \fIs\fR includes the same cells as this selection, or else FALSE..SH "int QTableSelection::rightCol () const"Returns the right column of the selection..SH "int QTableSelection::topRow () const"Returns the top row of the selection..SH "SEE ALSO".BR http://doc.trolltech.com/qtableselection.html.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -