Results 1 to 5 of 5

Thread: How to create my own widget

  1. #1

    Default How to create my own widget

    hii all..

    I want to create a widget that contains only a picture. For example i want a widget that contains only the smiley and also i don't want it within a square box or so. I can get this from QPainter but with that class i can get the picture in a filled form like smiley. I want only a circle in which i can place an icon. Also i can get this by using QIcon but on pressing a QIcon it shows a button on the background. I dont want that when i click the icon. I want completely transparent both when steady and when clicked.


    Thanks

    Jayakrishna Reddy

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: How to create my own widget

    How do you "press" a QIcon?
    It's nice to be important but it's more important to be nice.

  3. #3

    Default Re: How to create my own widget

    sorry not exactly clicking an icon but i am pointing to a situation when a icon is placed on a pushbutton or tool button

  4. #4
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: How to create my own widget

    Make a button and remove its border using cascading style sheets.
    It's nice to be important but it's more important to be nice.

  5. #5

    Default Re: How to create my own widget

    Thank you. I got my answer

Similar Threads

  1. How to Create child widget behind parent widget?
    By anupamgee in forum Qt Programming
    Replies: 6
    Last Post: 22nd June 2010, 13:03
  2. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  3. Replies: 8
    Last Post: 7th May 2009, 14:38
  4. How can I create a widget list as Qt Designer?
    By ricardo in forum Qt Programming
    Replies: 5
    Last Post: 3rd May 2009, 12:54
  5. QFormbuilder : can not create widget of Q3ListView
    By user_mail07 in forum Qt Programming
    Replies: 5
    Last Post: 26th January 2007, 23:12

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.