RE: Error while creating Embedded Canvas

From: Bertrand Bellenot <Bertrand.Bellenot_at_cern.ch>
Date: Fri, 23 Sep 2011 12:56:05 +0000


Hi Nikos,

You have to pass the Window id to gVirtualX->AddWindow(), and not the widget. I.e: int wid = gVirtualX->AddWindow((ULong_t)ui->displayWidget->winId(), 530, 300);

Cheers, Bertrand.

-----Original Message-----
From: Nikolaos Karastathis
Sent: 23 September 2011 05:02
To: Bertrand Bellenot
Cc: roottalk (Mailing list discussing all aspects of the ROOT system.) Subject: Re: [ROOT] Error while creating Embedded Canvas

Hello Bertrand,

Thank you for your prompt response.

I made a stripped down version of what I'm trying to do. I made the UI using QtCreator. You should be able to compile it, but if executed you should be able to reproduce the segfault.

My output is :

Warning in <TCanvas::ResizePad>: fCanvas width changed from 0 to 10 Warning in <TCanvas::ResizePad>: fCanvas height changed from 0 to 10

Cheers,
Nikos

On 09/22/2011 10:43 AM, Bertrand Bellenot wrote:
> Hi Nikos,
>
> Could you send a running piece of code illustrating the problem?
>
> Cheers, Bertrand.
>
>

--
Nikos Karastathis
PH-UAT - CERN
40-2-D19
+41 22 76 71162
Received on Fri Sep 23 2011 - 14:56:11 CEST

This archive was generated by hypermail 2.2.0 : Fri Sep 23 2011 - 17:50:02 CEST