PDA

View Full Version : Error calling ui widget



giannis1991
12th November 2015, 16:08
Qt gives me this error when i am trying to compile it. I m trying to call a widget from another ui,but i cant understand what is wrong.If someone could helpme please.Thank you a lot :):):)

11514

anda_skoa
12th November 2015, 16:17
Assuming a standard "designer class", the UI pointer is simply "ui" so


ui->listWidget->....


Cheers,
_

giannis1991
12th November 2015, 16:47
thank you :) but i said the problem is that the widget is on history.ui and i am trying to call it from mainwindow.cpp

Added after 20 minutes:

yeahhhhh...i found it :) i used history1.ui->..... and set it to public and thats it! :)

anda_skoa
12th November 2015, 19:16
Very strange setup though :)

Cheers,
_