Wt::WMenuItem SetIcon not working
I am using tab widget and want to set icon for some tab. I am setting the icon following as below. There is no error but i can't see the icon. What am i doing wrong?
m_homeTab = m_tabWidget->addTab(std::move(homeTabContent), tr("str.pivotHome"));
Note :: The icon location is ok. I can see it in the inspect tool. And i am using 16X16 px icon.