Project

General

Profile

Actions

Bug #9295

open

Wt::WMenuItem SetIcon not working

Added by Mahmudul Hasan over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/08/2021
Due date:
% Done:

0%

Estimated time:

Description

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"));
m_homeTab->setIcon("resources/assets/images/snow.png");
Note :: The icon location is ok. I can see it in the inspect tool. And i am using 16X16 px icon.

Actions #1

Updated by Korneel Dumon over 2 years ago

  • Priority changed from Immediate to Normal

Your code seems fine. I did a quick test and for me the icon is shown. Not sure what's wrong here. Make sure the icon is 16x16 else it will overflow.

Actions

Also available in: Atom PDF