Qt Code:
  1. error: no matching function for call to 'run(Widget* const, bool (Widget::*)(bool))'
  2. QFuture<void> future = QtConcurrent::run(this, &Widget::loadMenuItems);
  3. ^
To copy to clipboard, switch view to plain text mode 

Defined in header as:
Qt Code:
  1. bool loadMenuItems(bool reload=false);
To copy to clipboard, switch view to plain text mode 

Widget.cpp:
Qt Code:
  1. Widget::Widget(QWidget *parent) :
  2. QLineEdit(parent)
  3. {
  4.  
  5. QFuture<void> future = QtConcurrent::run(this, &Widget::loadMenuItems);
  6. future.waitForFinished();
  7.  
  8. }
To copy to clipboard, switch view to plain text mode 

I am following the example in the docs, but I keep getting this error.