I Have a Class Named “Student” (this class dose have Form) And In my MainWindow I have A QVector From This Class ! Now I want To Show The form Of each Member Of the QVector But I Can’t ! (I’m Doing this because I want that any Student have an Special Page For it self ! Witch saves any Change especial For themselves) This Is my Code :
In My Main Window :
StHead = new QVector <Student> ;
void MainWindow::StudentSignIn (QString User,QString Pass)
{
///////Sign in things !
int index = StudentSearch(User);
Student* at = StHead->data();
if (at[index].GetPass() == Pass)
emit Hide_StuLog();
qDebug()<<"This Slot happens";
(*StHead)[index].show();
}
BUT , When it shows , it’s An empty page ! What the problem ?! Is What I’m doing Even Possible ?!
↧