Qt:Документация 4.3.2/q3frame

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

Q3Frame Class Reference
[ Qt3Support module]

 #include <Q3Frame>

This class is part of the Qt 3 support library. It is provided to keep old source code working. Мы настоятельно не рекомендуем использовать этот класс в новом коде. See Porting to Qt 4 for more information.

Inherits QFrame.

Inherited by Q3DockWindow, Q3Grid, Q3HBox, Q3ScrollView, and Q3WidgetStack.

Свойства

  • 6 свойств, унаследованных от QFrame
  • 56 свойств, унаследованных от QWidget
  • 1 свойство, унаследованное от QObject

Открытые функции

  • 13 открытых функций, унаследованных от QFrame
  • 201 свойство, унаследованное от QWidget
  • 29 открытых функций, унаследованных от QObject
  • 12 открытых функций, унаследованных от QPaintDevice

Защищенные функции

  • 38 защищенных функций, унаследованных от QWidget
  • 7 защищенных функций, унаследованных от QObject
  • 1 защищенная функция, унаследованных от QPaintDevice

Дополнительные унаследованные члены

  • 19 открытых слотов, унаследованных от QWidget
  • 1 открытый слот, унаследованный от QObject
  • 1 сигнал, унаследованный от QWidget
  • 1 сигнал, унаследованный от QObject
  • 4 статических открытых члена, унаследованных от QWidget
  • 5 статических открытых членов, унаследованных от QObject
  • 1 защищенный слот, унаследованый от QWidget

Подробное описание


Описание cвойств

contentsRect : const QRect

This property holds the frame's contents rectangle (including the margins).

Функции доступа:

  • QRect contentsRect () const

margin : int

This property holds the width of the margin.

The margin is the distance between the innermost pixel of the frame and the outermost pixel of contentsRect(). It is included in frameWidth().

The margin is filled according to backgroundMode().

The default value is 0.

Функции доступа:

  • int margin () const
  • void setMargin ( int )

See also lineWidth() and frameWidth().


Описание функций-членов

Q3Frame::Q3Frame ( QWidget * parent, const char * name = 0, Qt::WindowFlags f = 0 )

Creates a new frame with the given parent, object name, and with widget flags f.

Q3Frame::~Q3Frame ()

Destructs the frame.

void Q3Frame::drawContents ( QPainter * painter ) [virtual protected]

Virtual function that draws the contents of the frame on the given painter.

The QPainter is already open when you get it, and you must leave it open. Painter transformations are switched off on entry. If you transform the painter, remember to take the frame into account and reset transformation before returning.

This function is reimplemented by subclasses that draw something inside the frame. It should only draw inside contentsRect(). The default function does nothing.

See also contentsRect() and QPainter::setClipRect().

void Q3Frame::drawFrame ( QPainter * p ) [virtual protected]

Draws the frame using the painter p and the current frame attributes and color group. The rectangle inside the frame is not affected.

This function is virtual, but in general you do not need to reimplement it. If you do, note that the QPainter is already open and must remain open.

See also frameRect(), contentsRect(), drawContents(), frameStyle(), and setPalette().

void Q3Frame::frameChanged () [virtual protected]

Virtual function that is called when the frame style, line width or mid-line width changes.

This function can be reimplemented by subclasses that need to know when the frame attributes change.

int Q3Frame::frameWidth () const

Returns the width of the frame (including the margin).

void Q3Frame::paintEvent ( QPaintEvent * event ) [virtual protected]

Paints the frame (or part of the frame) that's necessary, depending on the event.

Reimplemented from QWidget.

void Q3Frame::resizeEvent ( QResizeEvent * event ) [virtual protected]

This just calls frameChanged(); it does not make use of the event itself.

Reimplemented from QWidget.



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2