#include #include int main(int argc, char **argv) { const QUrl left("http://example.com"); const QUrl right("http://foobar.com"); const QUrl::FormattingOptions formattingOptions = QUrl::RemovePort; qDebug() << "matches():" << left.matches(right, formattingOptions); qDebug() << "adjusted():" << (left.adjusted(formattingOptions) == right.adjusted(formattingOptions)); return 0; }