Hi there folks,
I'm having a bit of a weird error here, when I use the following code:
Qt Code:
void mainwindow::adddialogslot() { adddialog *add = new adddialog; add->show(); if (add->Accepted) { QSqlRecord patient; patient.setValue("name", add->lineEdit_name->text()); } }To copy to clipboard, switch view to plain text mode
The compiler tells me "QLineEdit* Ui_AddDLG::lineEdit_name is inaccessible within this context". I wonder what I am doing wrong. Sample code would be appreciated.
Thanks in advance,
Nefastious![]()
Bookmarks