问题标签 [qwt]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
4043 浏览

c++ - 如何使用 Qt/QwtPlot 设置固定轴间隔?

我想在我的 Qt 应用程序中有一个绘图小部件。Qwt 通过 QwtPlot 提供了这样一个小部件。但是,我找不到任何方法来仅显示整个数据范围的特定部分。

具体来说,我想显示频率范围为 0 到 2^14 的频谱。然而,对于 GUI,只有 ~20-20k Hz 的可听范围很重要,所以我只想显示那部分。
你知道告诉 QwtPlot 这样做的任何方式吗?

谢谢您的回答。

0 投票
2 回答
13486 浏览

qt - 如何在 Windows 上构建 Qwt

这是我所做的:

  1. 从 sourceforge 下载 qwt-4.2.0-setup-qt230nc.exe
  2. 解压到 C:\Program Files\Qwt
  3. 转到 Qt 命令提示符
  4. 运行 msvc-qmake.bat。
  5. 获取输出

现在创建了 lib 目录,但它是空的。还尝试打开 VS 项目文件,但它与 VS2008 不兼容,因为没有 vcproj 文件。我也尝试过 qmake way: qmake qwt.pro然后make,但它说 make 无法识别。我想我可以使用 mingw32-make,但我给了我很多编译器错误。

我希望我会在 QtCreator 中使用 Qwt,但遗憾的是失败了。任何帮助表示赞赏。

0 投票
1 回答
1325 浏览

qt-creator - QWT/creator dll problems

I have been using qwt for some time, with the MSVC++ integrated versions of QT. Lately, I have been experimenting successfully with the QT Creator SDK, which uses the mingw-g++ tool chain, etc.

I can build qwt with no compile or link errors. However, when I try to run any executables (such as the qwt examples) I get an error

the procedure entry point ??0Brush@@QAE@W4GlobalColor@Qt@@W4BrushStyle@2@@Z could not be located in the dynamic link library QtGuid4.dll

I have tried moving the correct version of QtGuid4.dll (the one from the Mingw version of qt) into the local directory, checked my paths, etc--no joy. I have renamed the qtguid4.dll to a different name to make sure it was the one being used--it is, if I rename it, the system can't find the dll and wont run.

I do note that the C:\Qt\2009.03\qt\bin (the mingw one) is 134779 kb, while the msvc++ version is 11,380 kb--this seems like a huge discrepancy--

any ideas? things to try next? I have done the usual google searches, etc, with no success

0 投票
1 回答
1399 浏览

qt4 - Qt 设计器插件未在 Eclipse CDT 中加载

我已经安装了 Qwt 小部件,它们在 Qt Creator 和 QT 4 Designer 中运行良好;但是,当我通过 Eclipse CDT 运行 QT Designer 时,它们不会出现。有什么想法有什么问题吗?

我在 x32 Ubuntu 9.04 (Jaunty Jackalope) 上运行 Eclipse CDT 3.4.2 (Ganymede)。

请注意,Qt 插件工作正常,我可以创建和调试项目 - 但其他小部件是唯一没有显示的东西。

据我所知,我还检查了路径并确保一切都在那里。但当然有些事情是不对的。

这是我检查过的路径(注意:Eclipse 安装在 /opt/eclipse 中)

谢谢。

0 投票
1 回答
3833 浏览

c++ - 在 Mac OS X 上使用 Qwt

如何在 Mac OS X 上使用Qwt编译和运行Qt程序?

我总是收到一个错误,告诉我找不到libqwt.dylib。对于我从谷歌搜索中了解到的情况DYLD_LIBRARY_PATHenvironment.plist由于Apple出于安全原因禁用了它,所以我应该怎么做(每次重新编译时无需手动将lib复制到我的.app)?

我都试过了qmake -spec macx-g++qmake没有任何规格。该库目前在/usr/local/qwt/lib。我应该手动将它移动到某个系统路径还是有更好的方法(通过使用 otool 和 install_name_tool 魔法)?

0 投票
5 回答
4842 浏览

qt - Qt、VS2005、Qwt - 不能在派生自 Qwt 小部件的类中使用 Q_OBJECT

我们已经为 VS2005 编译了 QT 4.6 和 QWT 5.2.0。

我们试图从 QwtDial 派生一个类,而派生类有插槽。所以,我们需要添加 Q_OBJECT 宏。但是,当我们这样做时,链接器会消除此错误:

错误 LNK2001:未解析的外部符号“公共:静态结构 QMetaObject const QwtDial::staticMetaObject”(?staticMetaObject@QwtDial@@2UQMetaObject@@B)

我用depends查看了Qwt.dll,它具有该功能。使用十六进制编辑器查看 .lib 文件显示它与该名称损坏的字符串完全匹配。

我们在路径中有 Qwt 库。实际上,如果我重命名 lib,那么它会给出一个错误,即找不到 lib 文件。所以,我们知道它正在寻找正确的库。

如果我们跳过 Q_OBJECT,那么一切都使用几个 QWT 小部件正确链接和绘制,包括我们的非 Q_OBJECT Qwt 派生类。

有谁知道什么会导致这个非常烦人的链接器问题?

更新:

我已经验证了我添加 Q_OBJECT 的类肯定会为它生成一个 MOC 文件。链接器错误实际上来自这个生成的 MOC 文件:

所以,它看起来像一些非常奇怪和非典型的东西。该符号肯定在库中。

0 投票
1 回答
315 浏览

winforms - windows窗体曲线/绘图控件

我需要为我的数据绘制一条曲线,来源如下:

我使用的是 Qt Qwt,需要将其移植到 windows 窗体,有控件吗?免费?

0 投票
0 回答
110 浏览

qt - Qwt 中的设备裁剪

我在 qwt 中工作,并注意到我将设备剪辑设置为 false。有谁知道什么是设备剪辑?我在他们的文档中找不到任何关于它的信息。

谢谢。

0 投票
1 回答
2371 浏览

qt-creator - 在 QT Creator 中使用 qwt 会出现错误 Collect2: ld returned 1 exit status

开始:C:/Qt/2010.02.1/mingw/bin/mingw32-make.exe -w mingw32-make:进入目录C:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot' C:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Release all mingw32-make[1]: Entering directoryC:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot ' 链接 ....\examples\bin\data_plot.exe c:/qt/20​​10.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../。 ./mingw32/bin/ld.exe:找不到-lqwt5 collect2:ld返回1退出状态mingw32-make[1]:离开目录C:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot' mingw32-make: Leaving directoryC:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines /data_plot' mingw32-make[1]: * [....\examples\bin\data_plot.exe] 错误 1 ​​mingw32-make: * [release-all] 错误 2 Exited with code 2. 构建项目 data_plot 时出错执行构建步骤'Make'

这种错误的原因可能是什么?

感谢您的任何建议:)

0 投票
1 回答
1179 浏览

build - QDevelop Qt IDE 在 Ubuntu 10.04 LTS Lucid Lynx qwt

我在 Ubuntu 10.04 LTS Lucid Lynx 中使用 QDevelop、Qt IDE(Qt 版本 4.6.2)时遇到问题。我尝试使用的代码已从较新的 64 位笔记本电脑转移到我的 32 位笔记本电脑。两个系统都运行相同版本的 Ubuntu 和 Qt IDE。当我尝试构建代码时,我得到一长串错误,我真的不想在这里发布,但我会在我的文本末尾发布。任何帮助将不胜感激。无论出于何种原因,我的文本块都被切断了。我正在使用“< pre>在此处插入文本< slashpre>空白保留器技巧,我做错了什么?好的,我的构建文本块没有使用 pre slashpre html 东西正确格式化。这篇文章的格式是搞得一团糟!:|

我发送给我的大学的电子邮件:

。轮廓:

生成文件:

################################################# ###########################Makefile for building: bin/myPico # Generated by qmake (2.01a) (Qt 4.6.2) on : Mon Nov 22 10:56:19 2010 # Project: myPico.pro # Template: app # Command: /usr/bin/qmake-qt4 -unix -o Makefile myPico.pro ########### ################################################# ############### ####### 编译器、工具和选项 CC = gcc CXX = g++ DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Ibuild -Ibuild LINK = g++ LFLAGS = LIBS = $(SUBLIBS) -L/usr/lib - L/usr/local/qwt-5.2.

构建输出:

构建(制作)... g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I。-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Ibuild -Ibuild -o build/mainwindowimpl.o src/mainwindowimpl.cpp 在 /usr 包含的文件中/include/qt4/qwt_plot.h:17,来自 build/ui_mainwindow.h:29,来自 src/mainwindowimpl.h:5,来自 src/mainwindowimpl.cpp:1:/usr/include/qt4/qwt_array.h:25 :23:错误:qmemarray.h:没有这样的文件或目录在来自/usr/include/qt4/qwt_marker.h:20、来自/usr/include/qt4/qwt_plot.h:23、来自build/ui_mainwindow的文件中。 h:29,来自 src/mainwindowimpl.h:5,来自 src/mainwindowimpl.cpp:1:/usr/include/qt4/qwt_text.h:20:29:错误:qsimplerichtext。来自 /usr/include/qt4/qwt_plot.h:18,来自 build/ui_mainwindow.h:29,来自 src/mainwindowimpl.h:5,来自 src/mainwindowimpl.cpp:1:/usr/include/qt4/qwt_scldiv。 h:在全局范围内:/usr/include/qt4/qwt_scldiv.h:128:错误:ISO C++ 禁止声明没有类型的“QMemArray”/usr/include/qt4/qwt_scldiv.h:128:错误:预期的'; ' 在''/usr/include/qt4/qwt_plot_dict.h:22 之前:错误:'class QwtSeqDict'/usr/include/qt4/qwt_plot_dict.h 的声明:在构造函数'QwtCurveDict::QwtCurveDict()'中:/usr/include /qt4/qwt_plot_dict.h:66:错误:在此范围内未声明“setAutoDelete”/usr/include/qt4/qwt_plot_dict.h:在全局范围内:/usr/include/qt4/qwt_plot_dict.h:70:错误:无效使用不完整类型'class QwtSeqDict'/usr/include/qt4/qwt_plot_dict.h:22:错误: