Re: Error while creating Embedded Canvas

From: Nikolaos Karastathis <nikolaos.karastathis_at_cern.ch>
Date: Fri, 23 Sep 2011 16:43:17 +0200


Hello,

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.

Greetings,
Nikos

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
PH-UAT - CERN
40-2-D19
+41 22 76 71162
Received on Fri Sep 23 2011 - 16:43:27 CEST

This archive was generated by hypermail 2.2.0 : Mon Sep 26 2011 - 17:50:01 CEST