⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 canvaspicker.cpp

📁 This a framework to test new ideas in transmission technology. Actual development is a LDPC-coder in
💻 CPP
字号:
#include <qevent.h>#include <qwhatsthis.h>#include <qpainter.h>#include <qwt_plot.h>#include <qwt_plot_canvas.h>#include "canvaspicker.h"CanvasPicker::CanvasPicker(QwtPlot *plot):    QObject(plot),    d_selectedCurve(-1),    d_selectedPoint(-1){    QwtPlotCanvas *canvas = plot->canvas();    canvas->installEventFilter(this);    // We want the focus, but no focus rect. The    // selected point will be highlighted instead.    canvas->setFocusPolicy(QWidget::StrongFocus);    canvas->setFocusIndicator(QwtPlotCanvas::ItemFocusIndicator);    canvas->setFocus();    canvas->setCursor(Qt::pointingHandCursor);    QWhatsThis::add(canvas,        "All points can be moved using the left mouse button "        "or with these keys:\n\n"        "- Up:\t\tSelect next curve\n"        "- Down:\t\tSelect previous curve\n"        "- Left, 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -