![]() |
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции | ![]() |
Описанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде.
Константа | Значение |
---|---|
QWidget::WidgetOrigin | 0 |
QWidget::ParentOrigin | 1 |
QWidget::WindowOrigin | 2 |
QWidget::AncestorOrigin | 3 |
Returns the color role used for painting the widget's background.
Use QPalette(backgroundRole(()) instead.
See also setBackgroundMode().
Always returns QPoint().
Always returns WindowOrigin.
See also setBackgroundOrigin().
Use windowTitle() instead.
See also setCaption().
Это перегруженная функция, предоставленная для удобства.
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;
Это перегруженная функция, предоставленная для удобства.
Use the single point argument overload instead.
Это перегруженная функция, предоставленная для удобства.
Closes the widget.
Use the no-argument overload instead.
Use QColorGroup(palette()) instead.
Use ensurePolished() instead.
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.
Это перегруженная функция, предоставленная для удобства.
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.
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.
Это перегруженная функция, предоставленная для удобства.
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.
Это перегруженная функция, предоставленная для удобства.
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.
Это перегруженная функция, предоставленная для удобства.
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.
Use testAttribute(Qt::WA_UnderMouse) instead.
Return's the widget's icon.
Use windowIcon() instead.
See also setIcon().
Use windowIconText() instead.
See also setIconText().
Use showMinimized() instead.
Use windowType() == Qt::Desktop instead.
Use windowType() == Qt::Dialog instead.
Use testAttribute(Qt::WA_InputMethodEnabled) instead.
Use windowType() == Qt::Popup instead.
Use !isHidden() instead (notice the exclamation mark), or use isVisible() to check whether the widget is visible.
Use the updatesEnabled property instead.
Use isVisible() instead.
Use testAttribute(Qt::WA_SetCursor) instead.
Use testAttribute(Qt::WA_SetFont) instead.
Use testAttribute(Qt::WA_SetPalette) instead.
Это перегруженная функция, предоставленная для удобства.
Use the no-argument overload instead.
Use ensurePolished() instead.
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.
Это перегруженная функция, предоставленная для удобства.
The boolean parameter b is ignored. Use the no-argument overload instead.
Это перегруженная функция, предоставленная для удобства.
The boolean parameter b is ignored. Use the four-argument overload instead.
Это перегруженная функция, предоставленная для удобства.
The boolean parameter b is ignored. Use the single rect-argument overload instead.
Это перегруженная функция, предоставленная для удобства.
The boolean parameter b is ignored. Use the single region-argument overload instead.
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.
Это перегруженная функция, предоставленная для удобства.
Use setParent() to change the parent; use move() to move the widget, and use show() to show the widget.
Use activateWindow() instead.
See also isActiveWindow().
Use the palette instead.
Например, если у вас есть код
widget->setBackgroundColor(color);
вы можете записать его в виде
QPalette palette; palette.setColor(widget->backgroundRole(), color); widget->setPalette(palette);
Sets the color role used for painting the widget's background to background mode widgetBackground. The paletteBackground mode parameter is ignored.
See also backgroundMode().
See also backgroundOrigin().
Use the palette instead.
Например, если у вас есть код
widget->setBackgroundPixmap(pixmap);
вы можете записать его в виде
QPalette palette; palette.setBrush(widget->backgroundRole(), QBrush(pixmap)); widget->setPalette(palette);
Use setWindowTitle() instead.
See also caption().
Use the palette instead.
Например, если у вас есть код
widget->setEraseColor(color);
вы можете записать его в виде
QPalette palette; palette.setColor(widget->backgroundRole(), color); widget->setPalette(palette);
Use the palette instead.
Например, если у вас есть код
widget->setErasePixmap(pixmap);
вы можете записать его в виде
QPalette palette; palette.setBrush(widget->backgroundRole(), QBrush(pixmap)); widget->setPalette(palette);
Это перегруженная функция, предоставленная для удобства.
Use the single-argument overload instead.
Use setWindowIcon() instead.
See also icon().
Use setWindowIconText() instead.
See also iconText().
Use setAttribute(Qt::WA_InputMethodEnabled, enabled) instead.
See also isInputMethodEnabled().
Use setAttribute(Qt::WA_KeyCompression, b) instead.
Это перегруженная функция, предоставленная для удобства.
Use the single-argument overload instead.
Use the palette directly.
Например, если у вас есть код
widget->setPaletteBackgroundColor(color);
вы можете записать его в виде
QPalette palette; palette.setColor(widget->backgroundRole(), color); widget->setPalette(palette);
Use the palette directly.
Например, если у вас есть код
widget->setPaletteBackgroundPixmap(pixmap);
вы можете записать его в виде
QPalette palette; palette.setBrush(widget->backgroundRole(), QBrush(pixmap)); widget->setPalette(palette);
Use the palette directly.
Например, если у вас есть код
widget->setPaletteForegroundColor(color);
вы можете записать его в виде
QPalette palette; palette.setColor(widget->foregroundRole(), color); widget->setPalette(palette);
Use setVisible(shown) instead.
See also isShown().
Это перегруженная функция, предоставленная для удобства.
Use the sizePolicy property and heightForWidth() function instead.
Это перегруженная функция, предоставленная для удобства.
Sets the widget's GUI style to style using the QStyleFactory.
Use setFont(QFont()) instead.
Use setPalette(QPalette()) instead.
Use visibleRegion() instead.
The widget mapper is no longer part of the public API.
Copyright © 2008 Trolltech | Торговые марки | Qt 4.3.5 |