qwt

QWT designer plugin is inaccesable via QtCreator built-in designer

丶灬走出姿态 提交于 2019-12-11 15:47:33
问题 I've installed QWT 6.1.0 over a Qt 5.0.1. It installed correctly, but I have one problem with QWT Designer plugin: when I accessing QtDesigner separatly it works correct. But when I trying to use it inside a Creator it don't works: there is no qwt widgets in a form, althogh it builds correctly and widgets are displaying on a runtime. Next system variables are set: QT_PLUGIN_PATH = C:\Qwt-6.1.0\plugins QMAKEFEATURES = C:\Qwt-6.1.0\features In "Tools->Form Editor->QtDesigner Plugins" it is

Error c2440: cannot convert const char[4] to char*

◇◆丶佛笑我妖孽 提交于 2019-12-11 15:26:41
问题 i have a question: I have a code in QT Creator (build in MSVC2013) that first work perfectly, now in other computer with an updated QT Creator (build in MSVC2015) when try tu rungive me this error: "error: C2664: 'wave_object wave_init(char *)': cannot convert argument 1 from 'const char [4]' to 'char *'" "Conversion from string literal loses const qualifier (see /Zc:strictStrings)" Error is in this part of the code: wave_object db4; wt_object wt; db4 = wave_init("db4"); wt = wt_init(db4,

Change axis ticks and label to switch between millimeter and inch in QWT Plot

ⅰ亾dé卋堺 提交于 2019-12-11 12:17:37
问题 What I want is to switch axis labels and ticks to match as best for displaying inch and millimeters without changing curve points. I created a custom QwtScaleDraw and overwrote label() method, but this will not change the ticks. class QwtMyScaleDraw : public QwtScaleDraw { public: QwtMyScaleDraw() : QwtScaleDraw() { } protected: QwtText label(double value) const { // global conversion routine that creates a display string either as millimeter or inch return ConvertToString(value,

Qwt plot is not reploting

这一生的挚爱 提交于 2019-12-11 11:48:16
问题 I have a Qwt plot defined in a class method: plot = new QwtPlot(); const int margin = 5; plot->setContentsMargins( margin, margin, margin, 0 ); plot->setTitle( "Support polygon" ); plot->setCanvasBackground( Qt::white ); plot->setAxisScale( QwtPlot::yLeft, -0.8,0.8 ); plot->setAxisScale( QwtPlot::xBottom, -0.8,0.8 ); QBoxLayout *layout = new QBoxLayout(QBoxLayout::LeftToRight); layout->addWidget(plot); setLayout(layout); curve_ = new QwtPlotCurve(); curve_->attach( plot ); xData = new double

Can't install qwt designer plugin on mac

半城伤御伤魂 提交于 2019-12-11 07:32:58
问题 I am unable to install qwt designer plugin on my Mac. I have downloaded v 6.1.3, and successfully did qmake, make and sudo make install. The problem is that under /usr/local/qwt-6.1.3/lib I have only the file qwt.framework, and not something like libqwt.5.dylib, as the installation guide says. For this reason I con't follow the guide.... 回答1: Firstly Qwt 6 now uses a framework. That means there is no qwt.dylib file any more. If you want to link to it, you simply add this to your .pro file:

event providing to QWidget(QWT) embedded into QML Qt4

£可爱£侵袭症+ 提交于 2019-12-10 22:25:41
问题 I've used QwtPlot (Qwt 6.0.1) in QML project (Qt 4.8) . i'm wrap it via QDeclarativeItem GraphWidgetQML::GraphWidgetQML(QDeclarativeItem *parent):QDeclarativeItem(parent) { _GraphArea = new GraphWidget; //child of QwtPlot without event handlers overrides QGraphicsProxyWidget *_wiget = new QGraphicsProxyWidget(this); _wiget->setWidget(_GraphArea); _wiget->setFlag(QGraphicsItem::ItemIsFocusable,true); this->setClip(true); } and insert into into QML via code qmlRegisterType<GraphWidgetQML> (

QWT Dial, show unit

与世无争的帅哥 提交于 2019-12-10 11:56:48
问题 I try do speedometer in QT 5.8. I use widget QWT Dial. But I have problem as show a label for unit (km/h). I used google, but I don't find it. How Can I do it? thank you 回答1: The solution I propose is to create a class that inherits from QwtDial and overwrite the paintEvent method. mydial.h #ifndef MYDIAL_H #define MYDIAL_H #include <qwt_dial.h> class myDial : public QwtDial { Q_OBJECT public: myDial(QWidget *parent = NULL ); protected: void paintEvent(QPaintEvent *event); }; #endif // MYDIAL

Error when compiling simple Qwt program on Mac OSX 10.7.4

拜拜、爱过 提交于 2019-12-10 11:40:12
问题 I'm trying to get the following c++ program using Qwt v. 6.0.1 to work: #include <cmath> #include <QApplication> #include <qwt_plot.h> #include <qwt_plot_curve.h> int main(int argc, char **argv) { QApplication a(argc, argv); QwtPlot plot(QwtText("CppQwtExample1")); plot.setGeometry(0,0,640,400); plot.setAxisScale(QwtPlot::xBottom, 0.0, 2.0*M_PI); plot.setAxisScale(QwtPlot::yLeft, -1.0, 1.0); QwtPlotCurve sine("Sine"); std::vector<double> xs; std::vector<double> ys; for (double x=0; x<2.0*M_PI

I'm having issues getting the qwt widget to work correctly with Qt-Creator

怎甘沉沦 提交于 2019-12-10 11:37:38
问题 I'm having issues getting qwt 6.1.0 to work correctly with Qt-Creator 5.1.0. It works correctly when I launch the stand alone version of Qt-Designer and everything compiles and runs correctly when I use Qt-Creator. However the designer that is built into Qt-Creator does not display the qwt widgets correctly on any forms nor give me the option to add new qwt widgets. I'm using Qt Creator 5.1.0 for Windows 64-bit (VS2012 with OpenGL). I've also downloaded and compiled Qwt 6.1.0 with the

Is this method of inter-thread-communication safe?

梦想与她 提交于 2019-12-10 08:39:20
问题 I have 3 objects(inherited from QObject ) that each contain a separate std::list . Each object gets created in the main gui thread (with no parent) and then is pushed to it's own thread (using Qt's QObject::moveToThread() ). Each thread is hooked up to a gui and messages are sent between the different threads with data. Each thread is to essentially handle it's own list. For example: Obj 1 : Consumer of data. It pop's the front off of its list(if data is present) to use. It also has a SLOT