Details
Description
It works as expected: the "Back" and "Forward" buttons become grayed at the right points. But, if one makes below actions:
- Go to any link
- Go to yet another link
- Click "Back" button
- Click "Go to Main Page"
then both "Back" and "Forward" buttons are still enabled. And clicking on "Forward" button does nothing.
Another issue appears when clicking directly on "Go to Main Page" the "Back" button stays disabled even though the initial page should be in the history.
import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 import QtWebEngine 1.10 Window { id: window width: 800 height: 600 WebEngineView { id: webEngineView anchors.fill: parent url: "https://doc.qt.io/qt-5/qml-qtwebengine-webenginehistory.html" } Row { Button { id: mainPage text: "Go to Main Page" onClicked: webEngineView.url = "https://www.qt.io/" } Button { id: back enabled: webEngineView.canGoBack text: "Back" onClicked: webEngineView.goBack() } Button { id: forward enabled: webEngineView.canGoForward text: "Forward" onClicked: webEngineView.goForward() } } }