[Qt-jambi-interest] QHeaderView Exception Cannot set field '__rcModel

2011-08-20 Thread Poalo Pacussi
Hi folks, I extend the QHeaderView class and customize its behavior, including the setModel(..) method. But as soon as I call its super part an exception is thrown. Please see below for a short example and the exception. Is this an known issue? Regards, Paolo ## public class Test {

Re: [Qt-jambi-interest] QHeaderView Exception Cannot set field '__rcModel

2011-08-21 Thread Darryl Miles
Which version of Qt Jambi do you use ? Platform, version, etc... Try this patch. Maybe you could update your testcase and demonstrates it working. Thanks Darryl diff --git a/generator/typesystem/xml/typesystem_gui-common.xml b/generator/typesystem/xml/typesystem_gui-common.xml index b8db

Re: [Qt-jambi-interest] QHeaderView Exception Cannot set field '__rcModel

2011-08-23 Thread Poalo Pacussi
Hi, using win7 (32) with qtjambi 4.6.3. Wont have time until next Monday to try this. Thanks so far On Mon, Aug 22, 2011 at 12:26 AM, Darryl Miles < darryl-mailingli...@netbauds.net> wrote: > > Which version of Qt Jambi do you use ? Platform, version, etc... > > Try this patch. Maybe you could

Re: [Qt-jambi-interest] QHeaderView Exception Cannot set field '__rcModel

2011-08-23 Thread Samu Voutilainen
The patch AFAIK is also committed to trunk, if it is easier to use. On Tuesday 23 August 2011 12:52:52 Poalo Pacussi wrote: > Hi, > > using win7 (32) with qtjambi 4.6.3. Wont have time until next Monday to try > this. Thanks so far > > On Mon, Aug 22, 2011 at 12:26 AM, Darryl Miles < > darryl-ma

Re: [Qt-jambi-interest] QHeaderView Exception Cannot set field '__rcModel

2011-08-29 Thread Poalo Pacussi
It's correct that it is in the trunk. And the patch also works - thanks! One thing I noticed is that mouse clicks to the header are not signaled anymore (header.setClickable(true)). I'll have a look into that tomorrow, maybe a new flag was introduced. On Tue, Aug 23, 2011 at 8:28 PM, Samu Voutila

Re: [Qt-jambi-interest] QHeaderView Exception Cannot set field '__rcModel

2011-08-31 Thread Samu Voutilainen
On Tuesday 30 August 2011 02:32:41 Poalo Pacussi wrote: > It's correct that it is in the trunk. And the patch also works - thanks! > > One thing I noticed is that mouse clicks to the header are not signaled > anymore (header.setClickable(true)). I'll have a look into that tomorrow, > maybe a new f

Re: [Qt-jambi-interest] QHeaderView Exception Cannot set field '__rcModel

2011-08-31 Thread Poalo Pacussi
Hi, it failis only with my own class inherited from QHeaderView - with the usual one it is still working, so I guess nothing to worry about. The only strange thing is that no sectionClicked signal is emitted in my class anymore. If I override the mouseReleased method and copy exactly the functiona

Re: [Qt-jambi-interest] QHeaderView Exception Cannot set field '__rcModel

2011-09-01 Thread Poalo Pacussi
Hi, I've found the reason. The QHeaderView has a signal called "sectionClicked" which passes an Integer as value. My slot was named "private void sectionClicked(Integer index)". With this setup the sectionClicked signal wont be emitted anymore. As soon as I rename the slot, e.g. to "A_sectionClic

Re: [Qt-jambi-interest] QHeaderView Exception Cannot set field '__rcModel

2011-09-01 Thread Poalo Pacussi
Thinking of it, I do not understand why it worked with version qtjambi-4.6.3. Were there internal changes since that version that would explain the behaviour? On Thu, Sep 1, 2011 at 12:27 PM, Poalo Pacussi wrote: > Hi, > > I've found the reason. > > The QHeaderView has a signal called "sectionCli

Re: [Qt-jambi-interest] QHeaderView Exception Cannot set field '__rcModel

2011-09-01 Thread Samu Voutilainen
Your build is from trunk? There has lately been some changes that could’ve made these changes. Let’s see if we can find any exact reason for this... On Thursday 01 September 2011 14:29:30 Poalo Pacussi wrote: > Thinking of it, I do not understand why it worked with version > qtjambi-4.6.3. Were t

Re: [Qt-jambi-interest] QHeaderView Exception Cannot set field '__rcModel

2011-09-01 Thread Poalo Pacussi
Yes I build from trunk : git log -1 commit 4a0979764342ace521b642a8ce95a6d9eb22 Merge: f318e26 f377913 Author: Samu Voutilainen Date: Mon Aug 29 13:38:05 2011 +0300 Regards On Thu, Sep 1, 2011 at 6:00 PM, Samu Voutilainen wrote: > Your build is from trunk? There has lately been some cha