PDA

View Full Version : warning



mickey
26th September 2006, 22:23
hi, what's these warnings?? thanks


c:\Qt\4.1.4\bin\uic.exe mainwindow.ui -o ui\ui_mainwindow.h
Warning: name widget is already used
Warning: name widget is already used
Warning: name widget is already used
Warning: name widget is already used
Warning: name widget is already used
.................................................. .....

jacek
26th September 2006, 22:30
How many widgets called "name" do you have on that form?

mickey
26th September 2006, 22:42
I assume with 'called' you mean what in desinger is objectName; in this case I haven't widgets called 'name'; only thing with 'name' is the text of a qlabel but his name isn't 'name'....(I changed 'name' in 'nam' but the warning don't change..)

wysota
26th September 2006, 22:53
I think the name in question is "widget" and not "name".

mickey
26th September 2006, 22:56
(sorry I haven't edit prevoius post because sometimes when I click edit, it seems thinks too long)
--
Problem is that: there was many 'widget' not 'name'; it happen eg, when I create a horizontally layout (eg for a qlabel an qlineedit) designer seems don't create a qlayout but a qwidget (so I had 4 QWidget called 'widget'...
in the pic you can see I had to change name in 'widget1' but I had create a layout.....
what happen???

jacek
26th September 2006, 23:38
what happen???
http://www.qtcentre.org/forum/f-qt-designer-3/t-why-does-designer-alter-my-ui-upon-saveload-3686.html