Utils. Utils Workaround: As of Qt 5.4 QtQuick does not expose QUrl::fromUserInput.
More...
|
| Utils (QObject *parent=nullptr) |
|
|
static Q_INVOKABLE QUrl | fromUserInput (const QString &userInput) |
| fromUserInput. fromUserInput More...
|
|
Utils. Utils Workaround: As of Qt 5.4 QtQuick does not expose QUrl::fromUserInput.
Definition at line 136 of file main.cpp.
◆ Utils()
Utils::Utils |
( |
QObject * |
parent = nullptr | ) |
|
|
inline |
◆ fromUserInput()
QUrl Utils::fromUserInput |
( |
const QString & |
userInput | ) |
|
|
static |
fromUserInput. fromUserInput
Definition at line 147 of file main.cpp.
149 if (userInput.isEmpty())
return QUrl::fromUserInput(
"about:blank");
150 const QUrl result = QUrl::fromUserInput(userInput);
151 return result.isValid() ? result : QUrl::fromUserInput(
"about:blank");
The documentation for this class was generated from the following file: