×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    129

    Question Display image is Push button

    Hi

    Is it possible to display image in push button?

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Display image is Push button


  3. #3
    Registered User
    Join Date
    Oct 2007
    Location
    Pune
    Posts
    48

    Re: Display image is Push button

    Hi NRK,

    It is possible to display icon image on bush button. See the properties of push button.You can set icon from resource file or give the path of image you want to show as icon.

    Regards,
    Gulab

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Display image is Push button

    Yes. The "setIcon" method will set an icon into the button that displays ahead of any text. "setIconSize" controls the size of the displayed icon. If you want to REPLACE the button image with an icon, though, you need to study up on the "background-image" and "border-image" style sheet properties.

  5. #5
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Display image is Push button

    Quote Originally Posted by danhicksbyron View Post
    Yes. The "setIcon" method will set an icon into the button that displays ahead of any text. "setIconSize" controls the size of the displayed icon. If you want to REPLACE the button image with an icon, though, you need to study up on the "background-image" and "border-image" style sheet properties.
    http://doc.trolltech.com/4.6/stylesh...ton-and-images

Similar Threads

  1. C++ Problem Displaying Image in UI Button :(
    By SuperSeb in forum Symbian User Interface
    Replies: 3
    Last Post: 2010-02-12, 15:28
  2. Display image within a container
    By ckt in forum Symbian C++
    Replies: 6
    Last Post: 2008-11-25, 13:47
  3. Add push button in form
    By mramin05 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2008-10-30, 17:15
  4. Display .dm ( forward locked ) image
    By suvarna25 in forum Symbian C++
    Replies: 5
    Last Post: 2008-03-14, 05:03
  5. modifying image on display in canvas
    By aqibarain in forum Mobile Java General
    Replies: 1
    Last Post: 2007-11-30, 09:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •