Qt 3 Support Members for QWidgetОписанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде. Открытые типы
Открытые функции
Открытые слоты
Статические открытые члены
Описание типов-членовenum QWidget::BackgroundOrigin
Описание функций-членовQWidget::QWidget ( QWidget * parent, const char * name, Qt::WindowFlags f = 0 )Qt::BackgroundMode QWidget::backgroundMode () constReturns the color role used for painting the widget's background. Use QPalette(backgroundRole(()) instead. See also setBackgroundMode(). QPoint QWidget::backgroundOffset () constAlways returns QPoint(). BackgroundOrigin QWidget::backgroundOrigin () constAlways returns WindowOrigin. See also setBackgroundOrigin(). QString QWidget::caption () constUse windowTitle() instead. See also setCaption(). QWidget * QWidget::childAt ( int x, int y, bool includeThis ) constЭто перегруженная функция, предоставленная для удобства. Use the childAt() overload that doesn't have an includeThis parameter. Например, если у вас есть код return widget->childAt(x, y, true); вы можете записать его в виде QWidget *child = widget->childAt(x, y, true); if (child) return child; if (widget->rect().contains(x, y)) return widget; QWidget * QWidget::childAt ( const QPoint & p, bool includeThis ) constЭто перегруженная функция, предоставленная для удобства. Use the single point argument overload instead. bool QWidget::close ( bool alsoDelete )Это перегруженная функция, предоставленная для удобства. Closes the widget. Use the no-argument overload instead. QColorGroup QWidget::colorGroup () constUse QColorGroup(palette()) instead. void QWidget::constPolish () constUse ensurePolished() instead. void QWidget::drawText ( const QPoint & p, const QString & s )Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your drawing and call update() to schedule a replaint whenever necessary. See also QPainter. void QWidget::drawText ( int x, int y, const QString & s )Это перегруженная функция, предоставленная для удобства. Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your drawing and call update() to schedule a replaint whenever necessary. See also QPainter. void QWidget::erase ()Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your erasing and call update() to schedule a replaint whenever necessary. See also QPainter. void QWidget::erase ( int x, int y, int w, int h )Это перегруженная функция, предоставленная для удобства. Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your erasing and call update() to schedule a replaint whenever necessary. See also QPainter. void QWidget::erase ( const QRect & rect )Это перегруженная функция, предоставленная для удобства. Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your erasing and call update() to schedule a replaint whenever necessary. See also QPainter. void QWidget::erase ( const QRegion & rgn )Это перегруженная функция, предоставленная для удобства. Clear the given region, rgn. Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your erasing and call update() to schedule a replaint whenever necessary. See also QPainter. bool QWidget::hasMouse () constUse testAttribute(Qt::WA_UnderMouse) instead. const QPixmap * QWidget::icon () constReturn's the widget's icon. Use windowIcon() instead. See also setIcon(). QString QWidget::iconText () constUse windowIconText() instead. See also setIconText(). void QWidget::iconify ()Use showMinimized() instead. bool QWidget::isDesktop () constUse windowType() == Qt::Desktop instead. bool QWidget::isDialog () constUse windowType() == Qt::Dialog instead. bool QWidget::isInputMethodEnabled () constUse testAttribute(Qt::WA_InputMethodEnabled) instead. bool QWidget::isPopup () constUse windowType() == Qt::Popup instead. bool QWidget::isShown () constUse !isHidden() instead (notice the exclamation mark), or use isVisible() to check whether the widget is visible. bool QWidget::isUpdatesEnabled () constUse the updatesEnabled property instead. bool QWidget::isVisibleToTLW () constUse isVisible() instead. bool QWidget::ownCursor () constUse testAttribute(Qt::WA_SetCursor) instead. bool QWidget::ownFont () constUse testAttribute(Qt::WA_SetFont) instead. bool QWidget::ownPalette () constUse testAttribute(Qt::WA_SetPalette) instead. QWidget * QWidget::parentWidget ( bool sameWindow ) constЭто перегруженная функция, предоставленная для удобства. Use the no-argument overload instead. void QWidget::polish ()Use ensurePolished() instead. void QWidget::recreate ( QWidget * parent, Qt::WindowFlags f, const QPoint & p, bool showIt = false )Use setParent() to change the parent or the widget's widget flags; use move() to move the widget, and use show() to show the widget. void QWidget::repaint ( bool b )Это перегруженная функция, предоставленная для удобства. The boolean parameter b is ignored. Use the no-argument overload instead. void QWidget::repaint ( int x, int y, int w, int h, bool b )Это перегруженная функция, предоставленная для удобства. The boolean parameter b is ignored. Use the four-argument overload instead. void QWidget::repaint ( const QRect & r, bool b )Это перегруженная функция, предоставленная для удобства. The boolean parameter b is ignored. Use the single rect-argument overload instead. void QWidget::repaint ( const QRegion & rgn, bool b )Это перегруженная функция, предоставленная для удобства. The boolean parameter b is ignored. Use the single region-argument overload instead. void QWidget::reparent ( QWidget * parent, Qt::WindowFlags f, const QPoint & p, bool showIt = false )Use setParent() to change the parent or the widget's widget flags; use move() to move the widget, and use show() to show the widget. void QWidget::reparent ( QWidget * parent, const QPoint & p, bool showIt = false )Это перегруженная функция, предоставленная для удобства. Use setParent() to change the parent; use move() to move the widget, and use show() to show the widget. void QWidget::setActiveWindow ()Use activateWindow() instead. See also isActiveWindow(). void QWidget::setBackgroundColor ( const QColor & color )Use the palette instead. Например, если у вас есть код widget->setBackgroundColor(color); вы можете записать его в виде QPalette palette; palette.setColor(widget->backgroundRole(), color); widget->setPalette(palette); void QWidget::setBackgroundMode ( Qt::BackgroundMode widgetBackground, Qt::BackgroundMode paletteBackground = Qt::PaletteBackground )Sets the color role used for painting the widget's background to background mode widgetBackground. The paletteBackground mode parameter is ignored. See also backgroundMode(). void QWidget::setBackgroundOrigin ( BackgroundOrigin background )See also backgroundOrigin(). void QWidget::setBackgroundPixmap ( const QPixmap & pixmap )Use the palette instead. Например, если у вас есть код widget->setBackgroundPixmap(pixmap); вы можете записать его в виде QPalette palette; palette.setBrush(widget->backgroundRole(), QBrush(pixmap)); widget->setPalette(palette); void QWidget::setCaption ( const QString & c )Use setWindowTitle() instead. See also caption(). void QWidget::setEraseColor ( const QColor & color )Use the palette instead. Например, если у вас есть код widget->setEraseColor(color); вы можете записать его в виде QPalette palette; palette.setColor(widget->backgroundRole(), color); widget->setPalette(palette); void QWidget::setErasePixmap ( const QPixmap & pixmap )Use the palette instead. Например, если у вас есть код widget->setErasePixmap(pixmap); вы можете записать его в виде QPalette palette; palette.setBrush(widget->backgroundRole(), QBrush(pixmap)); widget->setPalette(palette); void QWidget::setFont ( const QFont & f, bool b )Это перегруженная функция, предоставленная для удобства. Use the single-argument overload instead. void QWidget::setIcon ( const QPixmap & i )Use setWindowIcon() instead. See also icon(). void QWidget::setIconText ( const QString & it )Use setWindowIconText() instead. See also iconText(). void QWidget::setInputMethodEnabled ( bool enabled )Use setAttribute(Qt::WA_InputMethodEnabled, enabled) instead. See also isInputMethodEnabled(). void QWidget::setKeyCompression ( bool b )Use setAttribute(Qt::WA_KeyCompression, b) instead. void QWidget::setPalette ( const QPalette & p, bool b )Это перегруженная функция, предоставленная для удобства. Use the single-argument overload instead. void QWidget::setPaletteBackgroundColor ( const QColor & color )Use the palette directly. Например, если у вас есть код widget->setPaletteBackgroundColor(color); вы можете записать его в виде QPalette palette; palette.setColor(widget->backgroundRole(), color); widget->setPalette(palette); void QWidget::setPaletteBackgroundPixmap ( const QPixmap & pixmap )Use the palette directly. Например, если у вас есть код widget->setPaletteBackgroundPixmap(pixmap); вы можете записать его в виде QPalette palette; palette.setBrush(widget->backgroundRole(), QBrush(pixmap)); widget->setPalette(palette); void QWidget::setPaletteForegroundColor ( const QColor & color )Use the palette directly. Например, если у вас есть код widget->setPaletteForegroundColor(color); вы можете записать его в виде QPalette palette; palette.setColor(widget->foregroundRole(), color); widget->setPalette(palette); void QWidget::setShown ( bool shown ) [slot]Use setVisible(shown) instead. See also isShown(). void QWidget::setSizePolicy ( QSizePolicy::Policy hor, QSizePolicy::Policy ver, bool hfw )Это перегруженная функция, предоставленная для удобства. Use the sizePolicy property and heightForWidth() function instead. QStyle * QWidget::setStyle ( const QString & style )Это перегруженная функция, предоставленная для удобства. Sets the widget's GUI style to style using the QStyleFactory. void QWidget::unsetFont ()Use setFont(QFont()) instead. void QWidget::unsetPalette ()Use setPalette(QPalette()) instead. QRect QWidget::visibleRect () constUse visibleRegion() instead. QWidgetMapper * QWidget::wmapper () [static]The widget mapper is no longer part of the public API.
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |