Hi,
I am trying to write a simple GUI to do event display using Qt. I am using the class TQtWidget to draw ROOT objects such as histograms and graphs onto the widgets. Everything compiles and works fine, but I notice some weird behavior when I do things such as click on the axis of a histogram, or right mouse-click onto the ROOT Canvas (loaded by TQtWidget). The behavior does not occur for any other Widget.
To be more specific, I get the following output, often repeating over and over, when I click on an axis of a histogram or graph:
Fri Jun 13 14:58:31 d-r19228.dhcp.fnal.gov ArgoQt[14444] : CGContextSaveGState: invalid context
Fri Jun 13 14:58:31 d-r19228.dhcp.fnal.gov ArgoQt[14444] : CGContextBeginPath: invalid context
Fri Jun 13 14:58:31 d-r19228.dhcp.fnal.gov ArgoQt[14444] : CGContextTranslateCTM: invalid context
Fri Jun 13 14:58:31 d-r19228.dhcp.fnal.gov ArgoQt[14444] : CGContextSetLineWidth: invalid context
Fri Jun 13 14:58:31 d-r19228.dhcp.fnal.gov ArgoQt[14444] : CGContextAddPath: invalid context
Fri Jun 13 14:58:31 d-r19228.dhcp.fnal.gov ArgoQt[14444] : CGContextDrawPath: invalid context
Fri Jun 13 14:58:31 d-r19228.dhcp.fnal.gov ArgoQt[14444] : CGContextRestoreGState: invalid context
Fri Jun 13 14:58:31 d-r19228.dhcp.fnal.gov ArgoQt[14444] : CGContextSetFillColorWithColor: invalid context
The following occurs when I right-mouse click on the Canvas:
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetShouldAntialias: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetFontSize: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextGetTextMatrix: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetTextMatrix: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetTextDrawingMode: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetFont: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetTextPosition: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextShowGlyphsWithAdvances: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetTextMatrix: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetShouldAntialias: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetLineCap: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetLineWidth: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetLineJoin: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetLineDash: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetStrokeColorWithColor: invalid context
Fri Jun 13 15:03:09 d-r19228.dhcp.fnal.gov ArgoQt[14499] : CGContextSetFillColorWithColor: invalid context
Furthermore, when I right click on the canvas, a menu pops up but the buttons/options aren’t drawn properly (if at all).
I am a novice, so I am not sure what the problem seems to be, and I can’t seem to find a solution on the internet. Otherwise the program works great, but if this could be fixed, the ROOT objects in the widget would be much more useful.
My version is ROOT 5.19/05 (trunk@24224). I am using Qt 4.4.0. My OS is Mac OS X Leopard 10.5.3
Thanks,
Taritree