Hi everyone,
well, on a normal QWidget the QCompleter works just fine.
I have no idea why it's not working on a QWidget added to a scene.
Thanks,
Rodrigo.
Hi everyone,
well, on a normal QWidget the QCompleter works just fine.
I have no idea why it's not working on a QWidget added to a scene.
Thanks,
Rodrigo.
Does it help if you set the Qt::BypassGraphicsProxyWidget window flag on the widget containing the completer?
It's likely this will simply not work without reimplementing QCompleter internals. You would have to at least call QCompleter::popup() with an appropriate rectangle based on the position of the proxy widget in the scene instead of the position of the real text edit (because it's not even visible and doesn't have valid coordinates).
Rodrigo.Celler (3rd December 2010)
Hi again,
now I see that there's a bigger problem.
When I move the completer->popUp(), I have to set the valid coordinates of the view, not the scene, but I dont think there's a way to get the coordinates of the QWidget based on the view.
Bookmarks