tabWidgetPointer->setTabIcon(tabIndex, icon);
});
+ // Enable spell checking.
+ webEngineProfilePointer->setSpellCheckEnabled(true);
+
+ // Set the spell check language.
+ webEngineProfilePointer->setSpellCheckLanguages({QStringLiteral("en_US")});
+
// Move to the new tab.
tabWidgetPointer->setCurrentIndex(newTabIndex);