[Qt-interest] (no subject)

Parameshwari paramr at tataelxsi.co.in
Mon Apr 20 12:36:22 CEST 2009


Hi,
         I am trying to add text and Image in QListWidget.
I am using the following code for that. It's doing what i expect. But here,
my problwem is ,In the same row,
i want the "Text" to be left alliagend and image to be at the right
alligned.

example

Hai       img1.png
hello     img2.png.


Please correct me if i am doing anything wrong in the code.

QListWidgetItem *newItem = new QListWidgetItem();
    newItem->setIcon(QIcon(":/end_butt.png"));
    newItem->setText(modStr);
    newItem->setTextAlignment(Qt::AlignLeading);
    lwCallHistory->setIconSize(QSize(20, 20));
    lwCallHistory->setMovement(QListView::Static);
    lwCallHistory->addItem(newItem);




Thanks & Regards
Param


The information contained in this electronic message and any attachments to this message are intended for the exclusive 
use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended
 recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy
 all copies of this message and any attachments contained in it.





More information about the Qt-interest-old mailing list