[Qt-interest] QGraphicsView widget proxy issues.

Thomas Fjellstrom tfjellstrom at shaw.ca
Fri Oct 9 21:54:50 CEST 2009


I currently have two issues when using embedded widgets in a QGraphicsView 
with Qt 4.5.

First one is in windows (XP, and Vista iirc) there is a drawing issue, some of 
the widgets are cut off at the top and left side (missing part of the 3d box 
in all my line edits)

And second issue is setTabOrder doesn't work at all (trying to use it causes a 
warning at runtime saying the widgets aren't in the same root), and trying to 
tab through the line edits fails completely. Give the selection to the first 
one, and press tab, the selection just goes away. No widgets are selected. Now 
when tabbing from the LAST line edit, it will propagate to the buttons below, 
but tabbing away from the last button, the selection disappears again and 
won't come back, just like with tabbing through the line edits.

I've tested with an older version of Qt and at the very least tabbing works 
just fine, so sometime between 4.4.3 and 4.5.2 there's been a regression.

It is possible it is somehow my fault, so I'm attaching the source file for 
one of my graphics view dialogs. See if maybe someone can spot what I might be 
doing wrong.

Thanks.

-- 
Thomas Fjellstrom
tfjellstrom at shaw.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LoginDialog.cpp
Type: text/x-c++src
Size: 2647 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091009/f2276360/attachment.bin 


More information about the Qt-interest-old mailing list