maarvi
28th June 2011, 08:11
hello every one this is my code
myplot * p = new myplot(gao.structpayloadgraph,gao1.structpayloadgr aph, gao.structcol-2, "payload");
myplot * p1 = new myplot(gao.structsessiongraph,gao.structsessiongra ph ,gao.structcol-2, "session");
ui->horizontalLayout_3->addWidget(p);
ui->horizontalLayout_3->addWidget(p1);
its working fine my graph are shown side by size but the problem is that it is good for small graphs having 5 ,6 points but when i try to show some bigger graph the window(in which graph is shown) become extremely large the it didn't fit on screen so is there a way by which i can take the size of horizontal layout and then resize my p , p1 to fit in to that area something like that
thankss
myplot * p = new myplot(gao.structpayloadgraph,gao1.structpayloadgr aph, gao.structcol-2, "payload");
myplot * p1 = new myplot(gao.structsessiongraph,gao.structsessiongra ph ,gao.structcol-2, "session");
ui->horizontalLayout_3->addWidget(p);
ui->horizontalLayout_3->addWidget(p1);
its working fine my graph are shown side by size but the problem is that it is good for small graphs having 5 ,6 points but when i try to show some bigger graph the window(in which graph is shown) become extremely large the it didn't fit on screen so is there a way by which i can take the size of horizontal layout and then resize my p , p1 to fit in to that area something like that
thankss