Results 1 to 2 of 2

Thread: Icons not getting displayed while running on target.

  1. #1
    Join Date
    Oct 2010
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Icons not getting displayed while running on target.

    Hi All,

    I have developed my application which runs on Blackfin board. It has numerous buttons on it with Icons. But the icons are not getting displayed but the buttons are coming up properly as expected. I have created a folder (Icons) inside my project directory to put all my incons (png files). The implementation is been done in Ubuntu.

    In the code part I have implemented something like this,

    button->setIcon(QIcon(":/Icons/radio.png"));
    button->setIconSize(QSize(40,40));

    Please give me your valuable suggestion for this issue.

    Regards,
    Siva

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Icons not getting displayed while running on target.

    did you use the resource system (qrc)? Because you are using the notation for it, but write, you are using relative (?) paths.

Similar Threads

  1. Action Icons not showing when running app
    By jimmydean101 in forum Newbie
    Replies: 4
    Last Post: 14th February 2011, 15:35
  2. QMake dist-like target?
    By akos.maroy in forum Qt Tools
    Replies: 5
    Last Post: 31st January 2010, 15:49
  3. Images/icons. It's not displayed
    By LMZ in forum Qt Tools
    Replies: 37
    Last Post: 18th May 2007, 14:55
  4. qmake-qt4 & TARGET
    By !Ci in forum Qt Programming
    Replies: 2
    Last Post: 27th September 2006, 22:34
  5. Replies: 1
    Last Post: 17th May 2006, 00:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.