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

📄 qtableselection.3qt

📁 linux下GUI编程工具qt的在线连接帮助手册
💻 3QT
字号:
'\" t.TH QTableSelection 3qt "11 October 2001" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQTableSelection \- Access to a selected area in a QTable.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 class provides access to a selected area in a QTable..PPThe selection is a rectangular set of cells. One of the rectangle's cells is called the anchor cell; this is the cell that was selected first. The init() function sets the anchor and the selection rectangle to exactly this cell; the expandTo() function expands the selection rectangle to include additional cells..PPThere are various access functions to find out about the area: anchorRow() and anchorCol() return the anchor's position; leftCol(), rightCol(), topRow() and bottomRow() return the rectangle's four edges. All four are part of 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(), QTable::selection() and Advanced Widgets..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..PPSee also anchorRow() and expandTo()..SH "int QTableSelection::anchorRow () const"Returns the anchor row of the selection..PPSee also anchorCol() and expandTo()..SH "int QTableSelection::bottomRow () const"Returns the bottom row of the selection..PPSee also topRow(), leftCol() and rightCol()..SH "void QTableSelection::expandTo ( int row, int col )"Expands the selection to include cell \fIrow\fR, \fIcol\fR. The new selection rectangle is the bounding rectangle of \fIrow\fR, \fIcol\fR and the previous selection rectangle. After calling this function the selection is active..PPIf you haven't called init(), this function does nothing..PPSee also init() and isActive()..SH "void QTableSelection::init ( int row, int col )"Sets the selection anchor to cell \fIrow\fR, \fIcol\fR and the selection to contain only this cell..PPTo extend the selection to include additional cells, call expandTo()..PPSee also isActive()..SH "bool QTableSelection::isActive () const"Returns whether the selection is active or not. A selection is active after init() and expandTo() have been called..SH "int QTableSelection::leftCol () const"Returns the left column of the selection..PPSee also topRow(), bottomRow() and rightCol()..SH "bool QTableSelection::operator== ( const QTableSelection & s ) const"Returns TRUE if \fIs\fR includes the same cells as the selection; otherwise returns FALSE..SH "int QTableSelection::rightCol () const"Returns the right column of the selection..PPSee also topRow(), bottomRow() and leftCol()..SH "int QTableSelection::topRow () const"Returns the top row of the selection..PPSee also bottomRow(), leftCol() and rightCol()..SH "SEE ALSO".BR http://doc.trolltech.com/qtableselection.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qtableselection.3qt) and the Qtversion (3.0.0).

⌨️ 快捷键说明

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