You are not logged in.
Pages: 1
arch linux
qt 6.10.1
qwt 6.3.0-1
QWidget: Must construct a QApplication before a QWidget
#include <qwt_plot_curve.h>
#include <qwt_plot.h>
#include <qapplication.h>
int main(int argc, char **argv)
{
QApplication a(argc, argv);
double x[101];
double y[101];
for ( int i = 0; i < 101; i++ ) {
x[i] = i / 10.0;
y[i] = sin(x[i]);
}
QwtPlot plot;
QwtPlotCurve *curve = new QwtPlotCurve();
curve->setRawSamples(x, y, 101);
curve->attach(&plot);
plot.show();
return a.exec();
}a few days ago, before some updates of qt, no error for the codes above.
Offline
https://gitlab.archlinux.org/archlinux/ … -/issues/1
qwt package on archlinux is built against qt 5 , see https://gitlab.archlinux.org/archlinux/ … -/issues/1
If you prefer using qwt with qt6 , try https://aur.archlinux.org/packages/qwt-qt6 .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Pages: 1