I have an error-warning when i am debugging my program!
-
Hi i have an error like this everytime i debug my application ( which also cause the debug time to be about 15 seconds )
@/home/babulas/Desktop/program/mainwindow.ui:-1: error: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget2'.@
Yes i saw that at the ui file there was 2 layoutwidget so i renamed the one of them layoutwidget2..And no error now.. But just to know.. Is everything ok with the app? Why this happened? Thanks for any reply !
-
It is just a warning, so it's nothing that makes your application crash or fail. uic already corrected it for you. It can lead to real errors only, if you search for the layout by its object name (using "QObject::findChild() ":http://doc.qt.nokia.com/4.7/qobject.html#findChild or "QObject::findChildren() ":http://doc.qt.nokia.com/4.7/qobject.html#findChildren), as those will return the wrong object.
-
So i did right renaming one of them to layoutwidget2 manually?
-
[quote author="Leon" date="1307382115"]So i did right renaming one of them to layoutwidget2 manually?[/quote]
Yes, that's the right solution.
-
Ok thanks for you reply :)