[Qt-interest] layout and QTreeWidget

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Mon Apr 6 01:38:13 CEST 2009


1) I used QtDesigner to learn how to set layouts - they are very powerful,
but the documentation is so sparse, and does not cover the interaction of
all the variables involved. 
 
2) The documentation of the model views is also really bad. I used
itemChanged to trap changes to checkState. But it is not obvious when this
signal is fired - is it fired when the flags change? when the expanded state
changes? whenever setData is called? etc. 
 
It seems Trolltech spent so much time getting new features in, then let
themselves down by poor doco. It's a shame! 
 
Hope that helps. 
 
 

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of AngelWarrior
Sent: Monday, 6 April 2009 09:14
To: qt-interest
Cc: Yixun Liu
Subject: Re: [Qt-interest] layout and QTreeWidget




On Sun, Apr 5, 2009 at 6:13 PM, AngelWarrior <srikanth.bemineni at gmail.com>
wrote:




On Sun, Apr 5, 2009 at 4:14 PM, Yixun Liu <enjoywm at cs.wm.edu> wrote:


Hi,
I have two problems.
1. I use QVBoxLayour to align two widgets. I want the bottom one to
maintain square shape as I resize.  How to do it?

    What are the widgets ??Is it a tree view and checkbox


2. I use QTreeWidge with check box. I want to send a single when I
change the state of the checkbox. However I try all the signals
mentioned in QTreeWidget class reference and only signal
itemSelectionChanged() can connect to my slot, but it is not what I want
signal.

   If you cannot then create your own signal by creating a class which
inherits the QTableWidget. or the other way.Not clear what exactly you want.



Thank.

Yixun
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest





-- 
_/\_
With Regards
SB Angel Warrior






-- 
_/\_
With Regards
SB Angel Warrior



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090406/b74d1d8c/attachment.html 


More information about the Qt-interest-old mailing list