[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QTreeWidgetItem with 2 row text
From: Saśl_Ibarra <saghul () gmail ! com>
Date: 2009-08-27 22:21:21
Message-ID: 34035cf70908271521k4cc4ad3dl31e38f223a0ff139 () mail ! gmail ! com
[Download RAW message or body]
Well, that looks like a tille hack :) isn't there a widget which
accepts 2 row text, and an icon?
Thanks!
On Thu, Aug 27, 2009 at 1:31 PM, tabish
shaikh<tabish_shaikh555@yahoo.com> wrote:
> use Listwidget instead of tree widget
>
> following is the snippet from the Chatting application i implemented:
> listItemMsg=QtGui.QListWidgetItem(str(message),listWidget, 0)
> listWidget.addItem(listItemMsgHeader) #msg hear is one item
> listWidget.addItem(listItemMsg) # actual msg is another item in
> the list
> listWidget.setCurrentItem(listItemMsg,QtGui.QItemSelectionModel.Deselect)
> #points the recent msg
>
>
> --- On Thu, 8/27/09, Saśl Ibarra <saghul@gmail.com> wrote:
>
> From: Saśl Ibarra <saghul@gmail.com>
> Subject: [PyQt] QTreeWidgetItem with 2 row text
> To: pyqt@riverbankcomputing.com
> Date: Thursday, August 27, 2009, 3:47 PM
>
> Hi all,
>
> I want to be able to insert a 2 row text ina QTreeWidgetItem:
> something like the instant messaging applications, the first row would
> contain the name of the contact and the second row would contain some
> descriptive message in an smaller font size.
>
> Is there any other widget more suitable for this task? If there is no,
> how could I add this second row thing to the qtreewidgetitem?
>
>
> Thanks in advance,
>
> --
> /Saśl
> http://www.saghul.net | http://www.sipdoc.net
>
> _______________________________________________
> PyQt mailing list PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
> start: 0000-00-00 end: 0000-00-00
--
/Saśl
http://www.saghul.net | http://www.sipdoc.net
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic