Hi,
I had uploaded 2 pics. pls help to look the attachment.
[1.jpg] -- One is what now I did, that is: every qwtplot is embeded in the QSpliter. At the edge of every plot-canvas, it has shadow and sunken effect.
[2.jpg] -- The other is waht I want: everyqwtplot is laid side by side without any effect and it makes them like on one plot. (QSpliter should be hidden, but it still works when mouse hover on it/ the side of the ervery separate plot)
code is here:
NUM = 4
QVBoxLay * vLayout;
QSpliter * spliter;
--------------------
for (int i = 0; i < NUM; i++)
{
pMyPlotArr
[i
]->setFrameStyle
(QFrame::Plain |
QFrame::NoFrame);
spliter->setHandleWidth(0);
spliter->addWidget(pMyPlotArr[i]);
}
spliter->show();
vLayout->addWidget(spliter);
setLayout(vLayout);
NUM = 4
QwtPlot * pMyPlotArr[NUM];
QVBoxLay * vLayout;
QSpliter * spliter;
--------------------
for (int i = 0; i < NUM; i++)
{
pMyPlotArr[i]->setFrameStyle(QFrame::Plain | QFrame::NoFrame);
spliter->setHandleWidth(0);
spliter->addWidget(pMyPlotArr[i]);
}
spliter->show();
vLayout->addWidget(spliter);
setLayout(vLayout);
To copy to clipboard, switch view to plain text mode
1.jpg
1.jpg
---------------------------------
2.jpg
2.jpg
Thank you in advance.
TangTao
Bookmarks