RE: Error while creating Embedded Canvas

From: Bertrand Bellenot <>
Date: Mon, 26 Sep 2011 10:42:10 +0000

And as I forgot to attach it, here it is...

Cheers, Bertrand.

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


Actually, when adding the winId() of a window or a widget when the program executes nothing really happens. What I did is to pass the id of the widget in which I want the canvas to appear and then in the constructor of the UI to draw an empty histo. Then when the Start is pressed fill the histo and update the canvas.

The output was that no canvas or histo was created during execution and when the button was pressed the process was irresponsive and I had to kill it.


On 09/23/2011 02:56 PM, Bertrand Bellenot wrote:
> 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.

Nikos Karastathis
+41 22 76 71162

Received on Mon Sep 26 2011 - 12:42:17 CEST

This archive was generated by hypermail 2.2.0 : Tue Sep 27 2011 - 23:50:02 CEST