Skip to content

Instantly share code, notes, and snippets.

@jniemann66
Created February 6, 2019 22:51
Show Gist options
  • Save jniemann66/e254a4e18884c9878f87cdd9d883e4ec to your computer and use it in GitHub Desktop.
Save jniemann66/e254a4e18884c9878f87cdd9d883e4ec to your computer and use it in GitHub Desktop.
Qt: converting to new signal / slot syntax and resolving overloads
// connect(nameCompleter_, SIGNAL(activated(QString)), this, SLOT(selected(QString)));
connect(nameCompleter_, QOverload<const QString &>::of(&QCompleter::activated), this, &ProspectFinder::selected);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment