Hi,

I just tried it myself. I added some buttons to a view (Functionality) and 
inserted in the respective slot methods one of the changeLayout calls:

 

  m_MultiWidget->changeLayoutToDefault();

  m_MultiWidget->changeLayoutToWidget1();

  m_MultiWidget->changeLayoutToBig3D();

 

For me, it works without problems (in a debug build). The layout changes as 
expected. Do you use the OpenCherry MainApp or your own application? 

 

Regards 

  Jochen 

 

Von: John Mothe [mailto:[email protected]] 
Gesendet: Sonntag, 7. Juni 2009 19:30
An: [email protected]
Betreff: Re: [mitk-users] Problem with QmitkStdMultiWidget

 

Can you help me?

 

I´m trying to change the QmitkStdMultiWidget layout but I get a access 
violation.


--- On Tue, 6/2/09, John Mothe <[email protected]> wrote:

        
        From: John Mothe <[email protected]>
        Subject: [mitk-users] Problem with QmitkStdMultiWidget
        To: [email protected]
        Date: Tuesday, June 2, 2009, 8:14 AM

Hi,

I´m using the QmitkStdMultiWidget  widget in a my project with Qt4 .In order to 
change the layout to changeLayoutToBig3d() (or other layout distribution) I get 
a memory access violation , I think that is the  line  delete 
QmitkStdMultiWidgetLayout; because I don´t know where is initialize that 
variable.

In mitk with qt3 the QmitkStdMultiWidgetLayout variable is initialize in the 
line QmitkStdMultiWidgetLayout = new QHBoxLayout( this, 2, 2, 
"QmitkStdMultiWidgetLayout");  but in qt4 this line was remove or I don´t know 
where is it.

How can I solve this error?

 

Thanks

         

        
        -----Inline Attachment Follows-----

        
------------------------------------------------------------------------------
        OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
        looking to deploy the next generation of Solaris that includes the 
latest 
        innovations from Sun and the OpenSource community. Download a copy and 
        enjoy capabilities such as Networking, Storage and Virtualization. 
        Go to: http://p.sf.net/sfu/opensolaris-get

        
        -----Inline Attachment Follows-----

        _______________________________________________
        mitk-users mailing list
        [email protected] 
<http://us.mc1118.mail.yahoo.com/mc/[email protected]>
 
        https://lists.sourceforge.net/lists/listinfo/mitk-users

 

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to