ok sir i will tell u in my program i have a widget window i have places a button an a list box in it. then i have made a class called myplot. i which graph plotting is done . then i n my button event handler i have called the object of myplot
myplot * p1 = new myplot(session,session ,24, "session"); // send arrays in argument containing the data to be plot
p1->show();
myplot * p2 = new myplot(payload,payload ,24, "payload"); // send arrays in argument containing the data to be plot
p2->show();
myplot * p1 = new myplot(session,session ,24, "session"); // send arrays in argument containing the data to be plot
p1->show();
myplot * p2 = new myplot(payload,payload ,24, "payload"); // send arrays in argument containing the data to be plot
p2->show();
To copy to clipboard, switch view to plain text mode
it working fine as my graph appear in new window. but what i want is that graphs should appear in my mainwigget window .
next what i did is that to remove the title bar of my graphs window i wrote
p1->setWindowFlags(Qt::FramelessWindowHint);
p2->setWindowFlags(Qt::FramelessWindowHint);
p1->setWindowFlags(Qt::FramelessWindowHint);
p2->setWindowFlags(Qt::FramelessWindowHint);
To copy to clipboard, switch view to plain text mode
now
1) what should i do to place and append the graphs window in my main window. also when i close main window my graph window should close .
2) when i select an other value from the list box and click button my old graph disappear and new should appear
hope you got me
thanks
Bookmarks