24 #include <QApplication> 25 #include <QColorDialog> 34 QPushButton(
"", parent),
37 connect(
this, SIGNAL(clicked(
bool)),
this, SLOT(
on_clicked(
bool)));
41 QPushButton(
"", parent),
44 connect(
this, SIGNAL(clicked(
bool)),
this, SLOT(
on_clicked(
bool)));
67 for (
unsigned int r = 0; r < rows; r++)
68 for (
unsigned int c = 0; c < cols; c++)
85 for (
unsigned int r = 0; r < rows; r++)
86 for (
unsigned int c = 0; c < cols; c++)
96 QColorDialog dlg(
this);
97 dlg.setOption(QColorDialog::ShowAlphaChannel);
98 dlg.setOption(QColorDialog::DontUseNativeDialog);
99 connect(&dlg, SIGNAL(colorSelected(
const QColor)),
122 QPushButton::paintEvent(event);
128 p.setPen(QApplication::palette().
color(QPalette::Dark));
it will come up with a session that has the demo device selected That you can get to know the program even when you don t have any hardware to use it you see a list of devices PulseView has recognized If the device you want to use is you can just select it here image::device_selector_dropdown png[] If it s not you ll need to scan for it first Since most serial port and Ethernet devices can t be auto this is usually required for those To do either choose the Connect to Device option from the list or click on the button itself You will see the following you ll need to pick a driver that you want to use In order to do this