Hi everybody.
I am trying to port an application from QT4.8 and Qwt-5.x patched with multiaxis to QT5.6 and Qwt-6.1-multiaxis.
This code worked in previous version:
Window=(QWidget*)MainWindow;
varQwt = MainWindow->findChildren<QwtPlot *>();
and varQwt contained a list of the QwtPlot objects contained in window MainWindow.
With latest QT/Qwt version varQwt is always empty, so QwtPlot widgets aren't found in MainWindow.
I made this workaround to overcome such problem.
Window=(QWidget*)MainWindow;
QList<QWidget *> tempList=MainWindow->findChildren<QWidget *>();
for (int i = 0; i < tempList.size(); ++i) {
QString oName=tempList.at(i)->metaObject()->className();
if(oName.compare("QwtPlot")==0)
varQwt.append(((QwtPlot*)tempList.at(i)));
}
Is this a bug present only for the multiaxes branch?
Regards
Valentino
Bookmarks