[Insight-users] Required QT Version For Building QT-Dependent Examples In InsightApplications?

Luis Ibanez luis.ibanez at kitware.com
Fri Apr 2 12:27:38 EDT 2010


Hi Constantine,

Thanks a lot for trying the code and for reporting back.

Yes, It doesn't seem that we have the coloring working right yet.

I guess I need to look closer at the proper way of changing color
buttons in Qt4.


The fact that it crashes in Release, is usually an indication
that we are dealing with uninitialized variables... I'll run it
with Valgrind to see if something obvious shows up.


BTW, For any Qt4 gurus out there,....

  If you can advice on the proper way of implementing
  button color changes in Qt4, that will be very much
  appreciated.


Thanks

     Luis


------------------------------------------------------------------------------
On Fri, Apr 2, 2010 at 12:07 PM, Constantine Zakkaroff <mnkz at leeds.ac.uk> wrote:
> Hi Luis,
>
> Thanks for the update.
>
> I got the new files, compiled them on VS 2008 (i386) on Windows Vista x64.
>
> In Debug mode the QtITK runs OK, but oddly enough the itkQTLightIndicator
> does change the colours from default to red to yellow to green as indented,
> although the slots do receive the signals.
>
> In Release mode the outcome is: Unhandled exception at 0x670da52c in
> QtITK.exe: 0xC0000005: Access violation reading location 0x00000010. I have
> not had a chance to have a closer look at this segfault.
>
> Regards,
> Constantine
>
>
>
> On 02/04/2010 00:24, Luis Ibanez wrote:
>>
>> Hi John,  Constantine,
>>
>> We have just committed changes to InsightApplications,
>> that update the code from QtITK to work with Qt4.
>>
>>
>> Please update your CVS checkout or download the
>> new files directly from:
>>
>>
>> http://public.kitware.com/cgi-bin/viewcvs.cgi/QtITK/?root=InsightApplications&sortby=date
>>
>>
>> The code was tested in a Ubuntu 9.10, 64bits machine
>> with qt4 installed as a package.
>>
>>
>> Please give it a try at the new code and
>> let us know if you find any problem.
>>
>>
>>      Thanks
>>
>>
>>            Luis
>>
>>
>>
>>
>> --------------------------------------------------------------------------------
>> On Wed, Mar 31, 2010 at 1:52 PM, John Drescher<drescherjm at gmail.com>
>>  wrote:
>>>
>>> On Wed, Mar 31, 2010 at 1:12 PM, Constantine Zakkaroff<mnkz at leeds.ac.uk>
>>>  wrote:
>>>>
>>>> Hello ALL,
>>>>
>>>> I'm trying to build QtITKExample with QT-4.6.2 and I get these messages:
>>>>
>>>> Error   1       fatal error C1083: Cannot open include file:
>>>> 'qbutton.h': No
>>>> such file or directory     c:\workspace\qtitk\itkQtLightIndicator.h
>>>>    2
>>>>       QtITK
>>>> Error   2       error C2661: 'QProgressBar::QProgressBar' : no
>>>> overloaded
>>>> function takes 2 arguments    c:\Workspace\QtITK\itkQtProgressBar.cxx 31
>>>>  QtITK
>>>> Error   3       error C2039: 'setTotalSteps' : is not a member of
>>>> 'itk::QtProgressBar'  c:\Workspace\QtITK\itkQtProgressBar.cxx 36
>>>>  QtITK
>>>> Error   4       error C2039: 'totalSteps' : is not a member of
>>>> 'itk::QtProgressBar'     c:\Workspace\QtITK\itkQtProgressBar.cxx 65
>>>>  QtITK
>>>> Error   5       error C2039: 'setProgress' : is not a member of
>>>> 'itk::QtProgressBar'    c:\Workspace\QtITK\itkQtProgressBar.cxx 67
>>>>  QtITK
>>>> Error   6       error C2039: 'totalSteps' : is not a member of
>>>> 'itk::QtProgressBar'     c:\Workspace\QtITK\itkQtProgressBar.cxx 84
>>>>  QtITK
>>>> Error   7       error C2039: 'setProgress' : is not a member of
>>>> 'itk::QtProgressBar'    c:\Workspace\QtITK\itkQtProgressBar.cxx 86
>>>>  QtITK
>>>>
>>>> I checked QT source/include files, documentation and it appears that the
>>>> messages indicate that QtITKExample was meant to be compiled with some
>>>> older
>>>> version of QT.
>>>>
>>>
>>> Ahh. I found it. You are talking about the one in InsightApplications.
>>> The cvs says that is 7 years old. I would not expect that to work with
>>> any current Qt versions.
>>>
>>>
>>> http://public.kitware.com/cgi-bin/viewcvs.cgi/QtITK/?root=InsightApplications
>>>
>>> John
>>> _____________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.html
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>


More information about the Insight-users mailing list