why do I get this error:warning when I "rebuild" a ui project?
Qt Code:
To copy to clipboard, switch view to plain text mode
why do I get this error:warning when I "rebuild" a ui project?
Qt Code:
To copy to clipboard, switch view to plain text mode
It means that inside the .ui XML file, the element named "layoutWidget" has already been used somewhere, and the moc compiler is complaining about that, and telling you that it is changing the name to make it unique.
Open the .ui file using a text editor (*not Qt Designer*) and do a search for "layoutWidget". You should find it twice. Change the name of one to something unique, and the warning will go away.
I don't know why this happens - it is probably a bug in Qt Designer somewhere that results in a name being reused. It is harmless, but if it bothers you, find it in a text editor (or using the Qt Designer hierarchy browser) and fix it.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
(Qt) guys, any plans to really fix this annoying bug ???
of course it's possible to edit the .ui file manually, but this gets overwritten on next edit with designer ((
and there are situations like the following, where changing the name(s) manually ain't that obvious:
</widget>
<zorder>layoutWidget</zorder>
<zorder>layoutWidget</zorder>
<zorder>layoutWidget</zorder>
<zorder>layoutWidget</zorder>
<zorder>groupBox_3</zorder>
</widget>
so which layoutWidget is which ??? This is really a bug !!!
this issue still there at Qt4.8.1, please fix it, can't be too hard ...
I know it's 3 years later but I'm seeing the same problem now with Qt Creator 3.3.2 (opensource) based on Qt 4.3.1 (BDD 4.6.1, 64 bit)
I can't find the widgets in question in the designer either. When I look at the XML I see them but I can't point to them on the form.
Any help?
They seem to be benign warnings but I'd rather not look at them and Qt Creator doesn't let you modify the XML directly.
Bookmarks