The problem is solved in the version available at http://svn2.mitk.org where
QmitkStdMultiWidget::QmitkStdMultiWidgetLayout is initialized in the
constructor of QmitkStdMultiWidget

Stefan

On Tue, Jun 9, 2009 at 5:51 PM, <[email protected]> wrote:

> Hi,
>
> I have generated a project using the bundle generator. I've managed to load
> my app as a plugin to the new MainApp. As a first step I tried to set up the
> rendering widget to only show one 2D image rendering window (imported .tif
> file). I tried to manage this by a call to
> QmitkStdMultiWidget::changeLayoutToWidget1().
>
> I'm having the same problem. In changeLayoutTo... the object
> QmitkStdMultiWidgetLayout is deleted, but the variable has not been
> initialized.
>
> I tried a workaround by commenting the deletion out, but didn't get an
> appropriate result. The layout of the widgets didn't change, but I got this
> intereseting console output during the call to QmitkStdMultiWidgetLayout =
> new QHBoxLayout(this); : "QLayout: Attempting to add QLayout "" to
> QmitkStdMultiWidget "QmitkStdMultiWidgetUi", which already has a layout"
>
> Stefan
>
>
> On Jun 8, 2009 11:15am, John Mothe <[email protected]> wrote:
> > Hi,
> >
> > I´m using my own application in Qt4 (release mode), but the
> QmitkStdMultiWidegtLayout variable never was initialize so the delete
> statement throw a memory access violation.
> >
> > --- On Mon, 6/8/09, Neuhaus Jochen [email protected]> wrote:
> >
> >
> >
> > From: Neuhaus Jochen [email protected]>
> > Subject: AW: [mitk-users] Problem with QmitkStdMultiWidget
> > To: "John Mothe" [email protected]>, [email protected]
> > Date: Monday, June 8, 2009, 8:19 AM
> >
> >
> >
> >
> >
> >
> >
> > 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]
> > https://lists.sourceforge.net/lists/listinfo/mitk-users
> >
> >
> >
> >
> >
> >
> >
> >
>



-- 
--
Stefan Daenzer
Körnerplatz 8
04107 Leipzig

Tel.: +49-176-61157550

"Work like you don't need the money, love like you've never been hurt and
dance like no one is watching." - Randall G Leighton
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to