My Main ui class has the ui member, like this.
NPE
::NPE(QWidget *parent, Qt
::WFlags flags
){
ui.setupUi(this);
}
void NPE::Update()
{
MessageBoxA(0,"he","called",0); // this works, it gets called
ui.Tabelwdiget->setrowcount(5);
}
NPE::NPE(QWidget *parent, Qt::WFlags flags)
: QMainWindow(parent, flags)
{
ui.setupUi(this);
}
void NPE::Update()
{
MessageBoxA(0,"he","called",0); // this works, it gets called
ui.Tabelwdiget->setrowcount(5);
}
To copy to clipboard, switch view to plain text mode
My other class who wants to fill the listview
Dispatch::Dispatch
{
NPE xx
xx.Update()
}
Dispatch::Dispatch
{
NPE xx
xx.Update()
}
To copy to clipboard, switch view to plain text mode
EDIT: forgot to add things,
euhm but when Update is called it does not work, no rows at the listview. But when I make the call from NPE::ClickedBut6 // examples*/ it does work, it's kinda weird.
Bookmarks