qgrapthic画图例子

时间:2018-05-06 16:12:31
【文件属性】:

文件名称:qgrapthic画图例子

文件大小:998KB

文件格式:ZIP

更新时间:2018-05-06 16:12:31

qgrapthic

class FAVView : public QGraphicsView { Q_OBJECT public: FAVView(QWidget *parent = NULL); ~FAVView(); private slots: }; class FAVScene : public QGraphicsScene { Q_OBJECT public: FAVScene(int wave_amplitude = 10, int wave_density = 5); ~FAVScene(); void setWaveAmplitude(int n) {mWaveAmplitude = n;}; void setWaveDensity(int n) {mWaveDensity = n;}; private slots: void slotUpdate(); protected: void drawBackground(QPainter *painter, const QRectF &rect); void drawForeground(QPainter *painter, const QRectF &rect); private: void setBuf(void); QPainterPath mPath; int mWaveAmplitude; //波形振幅 int mWaveDensity; //波形的疏密程度,模拟频率高低 int *mBuf; };


【文件预览】:
qgrapthic画图例子
----README.txt(846B)
----frequencyanalysisview.h(2KB)
----Makefile.Debug(7KB)
----frequencyanalysisview.cpp(3KB)
----widget.h(493B)
----widget.ui(3KB)
----vc90.pdb(908KB)
----Makefile.Release(8KB)
----ui_widget.h(6KB)
----main.cpp(181B)
----debug()
--------moc_widget.cpp(4KB)
--------FrequencyAnalysisViewTest.ilk(1.19MB)
--------FrequencyAnalysisViewTest.exe(86KB)
--------moc_frequencyanalysisview.obj(60KB)
--------frequencyanalysisview.obj(93KB)
--------FrequencyAnalysisViewTest.intermediate.manifest(878B)
--------FrequencyAnalysisViewTest.pdb(1.42MB)
--------main.obj(41KB)
--------moc_widget.obj(45KB)
--------moc_frequencyanalysisview.cpp(7KB)
--------widget.obj(136KB)
----Makefile(7KB)
----FrequencyAnalysisViewTest.pro.user(13KB)
----widget.cpp(1KB)
----FrequencyAnalysisViewTest.pro(469B)
----release()
--------moc_widget.cpp(3KB)
--------FrequencyAnalysisViewTest.exe(44KB)
--------moc_frequencyanalysisview.obj(15KB)
--------frequencyanalysisview.obj(44KB)
--------FrequencyAnalysisViewTest.intermediate.manifest(873B)
--------main.obj(8KB)
--------moc_widget.obj(10KB)
--------moc_frequencyanalysisview.cpp(6KB)
--------widget.obj(64KB)

网友评论