That dreaded invisible widget is back

Andreas Pakulat apaku at gmx.de
Thu Jun 18 21:11:01 UTC 2009


On 18.06.09 22:56:35, Andreas Pakulat wrote:
> On 18.06.09 22:31:30, Andreas Pakulat wrote:
> > On 18.06.09 22:21:03, Andreas Pakulat wrote:
> > > Hi,
> > > 
> > > I think some of you will remember that sometime last year we had a bogus
> > > widget in the top left area of the mainwindow. It seems that is back. I
> > > can't open File or Edit menu by clicking on them as some invisible
> > > widget seems to be on top of them. Unfortunately that widget seems to be
> > > a plain QWidget with no object name, so no way to easily find out
> > > where its coming from.
> > > 
> > > Anybody else seeing it?
> > 
> > Apparently this is related to the workingsets and tabbar for areas. When
> > I disable both I don't have that widget anymore. I'll try to play around
> > a bit to see wether its the tabs or the workingset stuff causing the
> > problems.
> 
> Ok, so the problem is the top-right corner widget, if I simply add a
> label there I get the invisible QWidget. This doesn't happen in
> konqueror, so I guess there's some way to avoid that.

Ok, turns out that this was a bogus widget being created in
setupAreaSelector in mainwindow_p.cpp. Seems like David forgot to fix
the code when he worked on it.

Lesson learned: Always put a meaningful object name on widgets created
as "new QWidget" to make sure that I can at least find them when using
Squish to inspect the GUI.

Andreas

-- 
You love peace.




More information about the KDevelop-devel mailing list