My application should contain a button, which, when clicked on, should open an external browser, here is my code
void Logindialog::on_inscriptionPushButton_clicked() { QDesktopServices::openUrl(QUrl("http://www.google.com", QUrl::TolerantMode)); }
but when I compile, I get this list of errors
- error: incomplete type 'QUrl' used in the nested specifier
- error: invalid use of incomplete type 'class QUrl'
- error: forward declaration of class QUrl
source share