# Context menu goes blank on TQtWidget

**URL:** <https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256>\
**Category:** ROOT\
**Created:** [November 1, 2010, 2:53am UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256 "2010-11-01T02:53:15Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![kame](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/34f0e0/32.png) [@kame](https://root-forum.cern.ch/u/kame)\
**Post date:** [November 1, 2010, 2:53am UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/1 "2010-11-01T02:53:15Z")

</div>

Dear all,

I am now trying to move from the native ROOT GUI to the Qt-integrated environment to enjoy the excellent productivity of Qt designer.  
I am using ROOT v5.27.06 and Qt 4.5.3 on CentOS 5.5.  
I successfully built a simple form that contains a TQtWidget to display ROOT graphs and histograms. However, a TCanvas context menu which pops up when right-clicking the TQtWidget is a gray blank and no characters are visible. This also happens in “HelloClick” example here ([url][Clickable ROOT histograms in QT](https://root-forum.cern.ch/t/clickable-root-histograms-in-qt/8342/1)  
Could anyone give me advice about this problem?  
Thank you.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [November 1, 2010, 9:51am UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/2 "2010-11-01T09:51:10Z")

</div>

Dear Satoru-san,

I see the problem with the HelloClick application, but not with a regular TCanvas. Could you confirm that it works with a a regular ROOT TCanvas for you as well?  
And I suppose Valeri will comment on this topic too…

Cheers, Bertrand.

---

<div class="post-metadata">

**Author:** ![kame](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/34f0e0/32.png) [@kame](https://root-forum.cern.ch/u/kame)\
**Post date:** [November 1, 2010, 2:16pm UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/3 "2010-11-01T14:16:05Z")

</div>

Hi Bertrand,

Thank you for reply.  
There is no problem with a regular ROOT TCanvas.  
This problem seems unique to Qt environment…

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [November 1, 2010, 5:14pm UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/4 "2010-11-01T17:14:23Z")

</div>

Did you follow [root.bnl.gov/QtRoot/How2Install4Unix.html](http://root.bnl.gov/QtRoot/How2Install4Unix.html) ?  
Can you try [root.bnl.gov/QtRoot/How2Install4 … complement](http://root.bnl.gov/QtRoot/How2Install4Unix.html#complement) to see whether it helps?

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [November 1, 2010, 5:18pm UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/5 "2010-11-01T17:18:36Z")

</div>

[quote=“kame”]Dear all, …  
to enjoy the excellent productivity of Qt designer.  
…  
Could anyone give me advice about this problem?  
[/quote]To enjoy “excellent productivity of Qt designer” you should install the full-fledged QtROOT as prescribed by [root.bnl.gov/QtRoot/How2Install4Unix.html](http://root.bnl.gov/QtRoot/How2Install4Unix.html)

---

<div class="post-metadata">

**Author:** ![kame](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/34f0e0/32.png) [@kame](https://root-forum.cern.ch/u/kame)\
**Post date:** [November 2, 2010, 12:09am UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/6 "2010-11-02T00:09:54Z")

</div>

Thank you for reply.

[quote=“fine”]Did you follow [root.bnl.gov/QtRoot/How2Install4Unix.html](http://root.bnl.gov/QtRoot/How2Install4Unix.html) ?  
Can you try [root.bnl.gov/QtRoot/How2Install4 … complement](http://root.bnl.gov/QtRoot/How2Install4Unix.html#complement) to see whether it helps?[/quote]  
I am using Qt interface included in the ROOT packages. Do you mean it is a incomplete one?  
If so, I wonder why ROOT team is unwilling to incorporate the full functionality of QtROOT…

---

<div class="post-metadata">

**Author:** ![kame](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/34f0e0/32.png) [@kame](https://root-forum.cern.ch/u/kame)\
**Post date:** [November 2, 2010, 12:27am UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/7 "2010-11-02T00:27:29Z")

</div>

Unfortunately the access to [root.bnl.gov/](http://root.bnl.gov/) is forbidden now. I could access bofore, though…

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [November 2, 2010, 3:19am UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/8 "2010-11-02T03:19:50Z")

</div>

[quote=“kame”]Unfortunately the access to [root.bnl.gov/](http://root.bnl.gov/) is forbidden now. [/quote] No, it is not. [quote=“kame”]I could access bofore, though…[/quote]Please try again. There were the problems with the file systems. [quote]\> UPS power failure resulted in loss of power on the RHIC AFS file

> servers. Servers are dual powered and from different floor PDU’s but  
> we have not gotten to the point of getting all redundantly powered  
> racks powered by separate UPS’s.[/quote] Just keep trying … At least it does work (from the coffee shop ) for me correctly.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [November 2, 2010, 3:22am UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/9 "2010-11-02T03:22:29Z")

</div>

[quote=“kame”]If so, I wonder why ROOT team is unwilling to incorporate the full functionality of QtROOT…[/quote]You are not alone. I have been wondering for many years too. (Just look up this forum)

---

<div class="post-metadata">

**Author:** ![brun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/b9e5f3/32.png) [@brun](https://root-forum.cern.ch/u/brun)\
**Post date:** [November 2, 2010, 9:09am UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/10 "2010-11-02T09:09:25Z")

</div>

I do not understand both remarks.  
If there are special extensions in the BNL version of QtRoot, it is a problem with Valeri if he does not provide the corresponding changes into the official ROOT SVN trunk.  
We have indicated here many times that we do not have the manpower to maintain this package that is given us and users more troubles than anything else in the system.

Rene

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [November 3, 2010, 3:47am UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/11 "2010-11-03T03:47:02Z")

</div>

[quote=“brun”]… Valeri if he does not provide the corresponding changes into the official ROOT SVN trunk.  
[/quote]It is not true. Just download the QtRoot and run “diff” between CERN SVN and BNL content.

---

<div class="post-metadata">

**Author:** ![brun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/b9e5f3/32.png) [@brun](https://root-forum.cern.ch/u/brun)\
**Post date:** [November 3, 2010, 6:05am UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/12 "2010-11-03T06:05:51Z")

</div>

Valeri,  
I do not understand what you mean.  
Either “diff” shows a difference and in this case I do not understand why you did not incorporate the changes  
into the CERN SVN trunk,  
or there is no difference and in this case I do not understand your answer above.

Rene

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [November 10, 2010, 9:33pm UTC](https://root-forum.cern.ch/t/context-menu-goes-blank-on-tqtwidget/11256/13 "2010-11-10T21:33:58Z")

</div>

I am sorry I missed this post.

[quote=“brun”]Valeri,  
Either “diff” shows a difference and in this case I do not understand why you did not incorporate the changes  
into the CERN SVN trunk[/quote]Can you be more specific? Which difference did you discover?  
The only difference you should see should come from the corrections done by CERN and at CERN to address the Coverity reports and introduce the non-standard strlcpy function. These latest corrections were not included into BNL repository yet because they break the backward compatibility of QtRoot. That I need find time to address yet. As soon as I introduce the solution to keep QtRoot backward compatible I’ll submit it to CERN.

Anyway, It seems it to me it is the BNL repository which is NOT up-to-date. CERN is in possession of the latest version. Did I miss anything else ?

Did you find anything beyond that to support your claim

> [@brun](#):
>
> Valeri … does not provide the corresponding changes into the official ROOT SVN trunk. ?

Of course the issue might not have existed at all if I would be provided with the SVN branch of CERN ROOT repository and was allowed to use SVN the way it was designed for. Each synch of several CVS/SVN repositories is waste of time and needs an extra man-power that as you said we lack of .
