[Qt-interest] How to fix "Warning: name layoutWidget is already used"?

K. Frank kfrank29.c at gmail.com
Tue Mar 16 01:52:10 CET 2010


Hi List -

When building a project I get three copies of the following warning:

   Warning: name layoutWidget is already used

This happens when the build process runs uic on the .ui file produced by
designer.  The warnings don't seem to do any harm, but I'd like to make
sure that I am doing everything correctly, and not planting any land mines
that I'll step on later.

I've built a fairly simple ui using designer.  (It's the main window for my
application.)  I don't believe I've done anything fancy or
particularly convoluted.
I have added and removed some layouts a couple of time.

The .ui file produced by designer does indeed contain four copies of the
line

    <widget class="QWidget" name="layoutWidget">

(in different, seemingly unrelated places), so getting three such warnings does
make some sense.

Am I doing something wrong or have I broken something?  Or is this just an
innocuous glitch in designer that I can safely ignore?

I am using Qt 4.6.1.  "uic -version" reports "Qt User Interface
Compiler version 4.6.1",
and "Help / About Qt Designer" reports "Version 4.6.1".

(It does seem that other people are seeing these same warnings.  I see a number
of instances of these warnings in the archives, but they are always
peripheral to
the issue being discussed, and they are not commented upon.  Basically someone
posts the output of a build process that contains an unrelated error
that is the point
of the discussion, and these warnings just go along for the ride.)

Any advice would be appreciated.

Thanks.


K. Frank



More information about the Qt-interest-old mailing list