....
unsigned int quality, width;
qualityWidget jpgQuality(this);
if (jpgQuality.
exec() == QDialog::Rejected) return;
jpgQuality.results(quality, width);
....
....
unsigned int quality, width;
qualityWidget jpgQuality(this);
if (jpgQuality.exec() == QDialog::Rejected) return;
jpgQuality.results(quality, width);
....
To copy to clipboard, switch view to plain text mode
this is the code. It is called from a window widget. the widget itself is a child of a qworkspace, which is a child of a qmainwindow.
qualityWidget is a inherited class of qdialog. the this pointer is passed straight to the qdialog constructor.
this is the declaration:
class qualityWidget
: public QDialog{
Q_OBJECT
....
public:
qualityWidget
(QWidget* parent
= 0);
~qualityWidget() {}
....
class qualityWidget : public QDialog
{
Q_OBJECT
....
public:
qualityWidget(QWidget* parent = 0);
~qualityWidget() {}
....
To copy to clipboard, switch view to plain text mode
and this the definition:
{
....
qualityWidget::qualityWidget(QWidget* parent) : QDialog(parent)
{
....
To copy to clipboard, switch view to plain text mode
Bookmarks