Q3ListBoxPixmap Class ReferenceThe Q3ListBoxPixmap class provides list box items with a pixmap and optional text. More... #include <Q3ListBoxPixmap> This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information. Inherits Q3ListBoxItem. Public Functions
Reimplemented Public Functions
Reimplemented Protected Functions
Detailed DescriptionThe Q3ListBoxPixmap class provides list box items with a pixmap and optional text. Items of this class are drawn with the pixmap on the left with the optional text to the right of the pixmap. See also Q3ListBox and Q3ListBoxItem. Member Function DocumentationQ3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pixmap )Constructs a new list box item in list box listbox showing the pixmap pixmap. Q3ListBoxPixmap::Q3ListBoxPixmap ( const QPixmap & pixmap )Constructs a new list box item showing the pixmap pixmap. Q3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pixmap, Q3ListBoxItem * after )Constructs a new list box item in list box listbox showing the pixmap pixmap. The item gets inserted after the item after, or at the beginning if after is 0. Q3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pix, const QString & text )Constructs a new list box item in list box listbox showing the pixmap pix and the text text. Q3ListBoxPixmap::Q3ListBoxPixmap ( const QPixmap & pix, const QString & text )Constructs a new list box item showing the pixmap pix and the text to text. Q3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pix, const QString & text, Q3ListBoxItem * after )Constructs a new list box item in list box listbox showing the pixmap pix and the string text. The item gets inserted after the item after, or at the beginning if after is 0. Q3ListBoxPixmap::~Q3ListBoxPixmap ()Destroys the item. int Q3ListBoxPixmap::height ( const Q3ListBox * lb ) const [virtual]Reimplemented from Q3ListBoxItem::height(). Returns the height of the pixmap in list box lb. void Q3ListBoxPixmap::paint ( QPainter * painter ) [virtual protected]Reimplemented from Q3ListBoxItem::paint(). Draws the pixmap using painter. const QPixmap * Q3ListBoxPixmap::pixmap () const [virtual]Reimplemented from Q3ListBoxItem::pixmap(). Returns the pixmap associated with the item. int Q3ListBoxPixmap::rtti () const [virtual]Reimplemented from Q3ListBoxItem::rtti(). Returns 2. Make your derived classes return their own values for rtti(), and you can distinguish between listbox items. You should use values greater than 1000 preferably a large random number, to allow for extensions to this class. int Q3ListBoxPixmap::width ( const Q3ListBox * lb ) const [virtual]Reimplemented from Q3ListBoxItem::width(). Returns the width of the pixmap plus some margin in list box lb. X
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |