Skip to content
This repository has been archived by the owner. It is now read-only.

ThePBone/QEqualizerView

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

QEqualizerView

Simple equalizer widget for Qt

Usage

This is a equalizer widget based on QCustomPlot for Qt.

Use LiquidEqualizerWidget instead!

Since the QEqualizerView class inherits QCustomPlot, you can use its functions to read/write the eq graph. (Refer to the docs if you don't know how)

Customization

The widget is a 15-band equalizer by default. However, you can customize the amount and the interval of these bands. To do that, go to the file qequalizerview.h and modify the following variables/statements:

Variable Description
NUM_BANDS amount of bands
double bands[] numeric values (used as x-coordinates)
QStringList bands_str[] string representation of these values (displayed as labels)

Public signals

Because this class implements its own editing logic, it contains with two signals which can be used to check if a slider has been dragged.

Of course QCustomPlot provides a lot more signals, check their docs for more information.

Signal Description
EditingFinished() mouse has been released
DataChanged() mousebutton is held down and data is being changed

Access values

You can use the interface of QCustomPlot to access the values of the graph like this:

  ui->eqplot->graph(0)->data()->...

Now you could iterate though the keys (hz/x-values) to find a value or update an eq-band manually. Check the QCustomPlot docs for more information...

Screenshot

About

Simple equalizer widget for Qt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published