📄 qcolordialog.3qt
字号:
'\" t.TH QColorDialog 3qt "5 August 2004" "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 NAMEQColorDialog \- Dialog widget for specifying colors.br.PP\fC#include <qcolordialog.h>\fR.PPInherits QDialog..PP.SS "Static Public Members".TPQColor \fBgetColor\fR ( QColor, QWidget * parent=0, const char * name=0 ) .TPQRgb \fBgetRgba\fR ( QRgb, bool * ok = 0, QWidget * parent=0, const char * name=0 ) .TPint \fBcustomCount\fR () .TPQRgb \fBcustomColor\fR ( int ) .TPvoid \fBsetCustomColor\fR ( int, QRgb ) .SH DESCRIPTIONThe QColorDialog class provides a dialog widget for specifying colors..PPThe color dialog's function is to allow users to choose colors - for instance, you might use this in a drawing program to allow the user to set the brush color..PPThis version of Qt only provides modal color dialogs. The static getColor() function shows the dialog and allows the user to specify a color, while getRgba() does the same but allows the user to specify a color with an alpha channel (transparency) value..PPThe user can store customCount() different custom colors. The custom colors are shared by all color dialogs, and remembered during the execution of the program. Use setCustomColor() to set the custom colors, and customColor() to get them..PP.ce 1.B "[Image Omitted]".PP.ce 1.B "[Image Omitted]".PP.SH MEMBER FUNCTION DOCUMENTATION.SH "QRgb QColorDialog::customColor ( int i ) \fC[static]\fR"Returns custom color number \fIi\fR as a QRgb..SH "int QColorDialog::customCount () \fC[static]\fR"Returns the number of custom colors supported by QColorDialog. All color dialogs share the same custom colors..SH "QColor QColorDialog::getColor ( QColor initial, QWidget * parent=0, const char * name=0 ) \fC[static]\fR"Pops up a modal color dialog letting the user choose a color and returns that color. The color is initially set to \fIinitial.\fR Returns an invalid color if the user cancels the dialog. All colors allocated by the dialog will be deallocated before this function returns..SH "QRgb QColorDialog::getRgba ( QRgb initial, bool * ok = 0, QWidget * parent=0, const char * name=0 ) \fC[static]\fR"Pops up a modal color dialog, letting the user choose a color and an alpha channel value. The color+alpha is initially set to \fIinitial.\fR.PPIf \fIok\fR is non-null, \fC*ok\fR is set to TRUE if the user clicked OK, and FALSE if the user clicked Cancel..PPIf the user clicks Cancel the \fIinitial\fR value is returned..SH "void QColorDialog::setCustomColor ( int i, QRgb c ) \fC[static]\fR"Sets custom color number \fIi\fR to the QRgb value \fIc.\fR.SH "SEE ALSO".BR http://doc.trolltech.com/qcolordialog.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 make our job much simpler. Thank you..PIn case of content or formattting problems with this manual page, pleasereport them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qcolordialog.3qt) and the Qtversion (2.3.8).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -