Search code examples
qtuser-interfaceqt5.1

Qt does not show images


Problem show in the link below: http://postimg.org/image/sp9mm85qb/

I try to add this image in code

    QIcon iconmain("qrc:/img/main.png");
    ui->tabWidget->tabBar()->setTabIcon(1,iconmain);

Tried to add image from resourse file from disk. But it still invisible.


Solution

  • Solved by changing msvs compil to mingv