I've tried creating a signal/slots. Something like:
connect(vTypeCombo,
SIGNAL(activated
(const QString)), this
->parent
(),
SLOT(videoUpdate
()));
connect(vTypeCombo, SIGNAL(activated(const QString)), this->parent(), SLOT(videoUpdate()));
To copy to clipboard, switch view to plain text mode
or
connect(vTypeCombo,
SIGNAL(activated
(const QString)), this
->parent
(),
SLOT(MainWindow
::videoUpdate()));
connect(vTypeCombo, SIGNAL(activated(const QString)), this->parent(), SLOT(MainWindow::videoUpdate()));
To copy to clipboard, switch view to plain text mode
where videoUpdate() is a public slot. However, I get no response from the slot (nor error message).
With a backPointerToMainWindow, do you mean:
MainWindow *backPointerToMainWindow = this; //memory address of MainWindow object? Correct?
or
MainWindow *backPointerToMainWindow = *this; //'value' of memory address, i.e. MainWindow object? Correct?
MainWindow *backPointerToMainWindow = this; //memory address of MainWindow object? Correct?
or
MainWindow *backPointerToMainWindow = *this; //'value' of memory address, i.e. MainWindow object? Correct?
To copy to clipboard, switch view to plain text mode
And then pass this pointer to the VideoTab object's constructor?
Thanks for your help. I'm still learning C++ and all of it's pointer/references related material.
Bookmarks