Hi Marcel,
You have to initialize your Combobox before you use it:

  m_Controls->m_MyComboBox->SetDataTree(GetDataTreeIterator());

Hope that helps, Cheers
  Jochen

---
MSc. Jochen Neuhaus
DKFZ
German Cancer Research Center (Deutsches Krebsforschungszentrum) 
Member of the Helmholtz Association
Division Medical and Biological Informatics E130
Im Neuenheimer Feld 280
D-69120 Heidelberg
Phone: 49-(0)6221-42-2329
Fax: 49-(0)6221-42-2345
E-Mail: [EMAIL PROTECTED]
Web: http://www.dkfz-heidelberg.de/en/mbi/people/Jochen_Neuhaus.html

Confidentiality Note: This message is intended only for the use of the named 
recipient(s) and may obtain confidential and/or privileged information. If you 
are not the intended recipient, please contact the sender and delete the 
message. Any unauthorized use of the information contained in this message is 
prohibited.


> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:mitk-users-
> [EMAIL PROTECTED] Im Auftrag von Marcel Schenderlein
> Gesendet: Donnerstag, 14. Februar 2008 18:08
> An: [email protected]
> Betreff: [mitk-users] Bug in QmitkDataTreeComboBox.cpp line 339 ???
> 
> Hi list,
> 
> while using the QmitkDataTreeComboBox my application crashes when I am
> trying to set a custom filter. This happens in line 339 in the file
> QmitkDataTreeComboBox.cpp. It seems as if the case of no items in the
> DataTreeFilter output is not considered. If I set up the filter after
> filling the data tree with appropriate data then everything works fine.
> What I was going to do (and did when the bug happend) was setting up
> the
> filter when the functionality is created (in CreateControlWidget... any
> better ideas?).
> 
> There seems to be another glitch. m_DisplayedProperty is set to "name"
> at the end of the method so there is no need for searching for the
> left-most string property!? Maybe an else-statement is missing?
> 
> I would appreciate any hint on this.
> 
> Cheers, Marcel
> 
> 
> 
> --
> ---------------------------------------------
> Dipl.-Ing. Marcel Schenderlein
> Institute of Measurement, Control and Microtechnology
> Ulm University
> Albert Einstein Allee 41
> 89081 Ulm, Germany
> 
> Phone:  +49 (0) 731 50 26338
> FAX:    +49 (0) 731 50 26301
> Mobile: +49 (0) 176 217 33668
> 
> Email: [EMAIL PROTECTED]
> web:   http://www.uni-ulm.de/in/mrm
> 
> -----------------------------------------------------------------------
> --
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to