I have a subclass of QMainWindow that includes a QProgressBar as a member. The subclass also contains an instance of another class called articlePage, which contains a QWebView. I want to connect the loadProgress signal of the QWebView to the setValue slot of the progress bar.

Qt Code:
  1. class articlePage;
  2.  
  3. class appWindow : public QMainWindow
  4. {
  5. Q_OBJECT
  6.  
  7. public:
  8. appWindow(QWidget* parent = 0);
  9.  
  10. private:
  11. articlePage *firstPage;
  12. QProgressBar *webLoad;
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. class articlePage : public QWidget
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. articlePage(QWidget* parent=0);
  7. QWebView *wordSearch;
To copy to clipboard, switch view to plain text mode 

Placing
Qt Code:
  1. connect(firstPage->wordSearch, SIGNAL(loadProgress(int)), webLoad, SLOT(setValue(int)));
To copy to clipboard, switch view to plain text mode 

in appWindow.cpp gives a segmentation fault. What is the proper way to access wordSearch's signals?