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

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

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

__NOTOC__

Image:qt-logo.png

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

Image:trolltech-logo.png

Содержание

[править] Q3ListBoxText Class Reference
[ Qt3Support module]

The Q3ListBoxText class provides list box items that display text. Далее...

 #include <Q3ListBoxText>

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 Q3ListBoxItem.

[править] Открытые функции

[править] Защищенные функции

  • virtual void paint ( QPainter * painter )

[править] Подробное описание

The Q3ListBoxText class provides list box items that display text.

The text is drawn in the widget's current font. If you need several different fonts, you must implement your own subclass of Q3ListBoxItem.

See also Q3ListBox and Q3ListBoxItem.


[править] Описание функций-членов

[править]
Q3ListBoxText::Q3ListBoxText ( Q3ListBox * listbox, const QString & text = QString() )

Constructs a list box item in list box listbox showing the text text.

[править]
Q3ListBoxText::Q3ListBoxText ( const QString & text = QString() )

Constructs a list box item showing the text text.

[править]
Q3ListBoxText::Q3ListBoxText ( Q3ListBox * listbox, const QString & text, Q3ListBoxItem * after )

Constructs a list box item in list box listbox showing the text text. The item is inserted after the item after, or at the beginning if after is 0.

[править]
Q3ListBoxText::~Q3ListBoxText ()

Destroys the item.

[править]
int Q3ListBoxText::height ( const Q3ListBox * lb ) const [virtual]

Returns the height of a line of text in list box lb.

Reimplemented from Q3ListBoxItem.

See also paint() and width().

[править]
void Q3ListBoxText::paint ( QPainter * painter ) [virtual protected]

Draws the text using painter.

Reimplemented from Q3ListBoxItem.

[править]
int Q3ListBoxText::width ( const Q3ListBox * lb ) const [virtual]

Returns the width of this line in list box lb.

Reimplemented from Q3ListBoxItem.

See also paint() and height().



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2