Results 1 to 4 of 4

Thread: how to display text string with icon to specify its functionality

  1. #1
    Join Date
    Nov 2010
    Posts
    29
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Post how to display text string with icon to specify its functionality

    dear all,

    i wanted to know how to display text string below icon. i have included the snap shot of the program. i have changed original program according to my necessity now i am stuck with displaying name of icons. could any one help me plz plz plz.

    Qt- version =4.7
    OS= ubuntu (vmware player)
    target of Qt is directfb-1.4

    thank you

    regards
    rashmi
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to display text string with icon to specify its functionality

    You need to draw the text in the item or add a child text item to the main item and position it under the icon.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2010
    Posts
    29
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: how to display text string with icon to specify its functionality

    could you please tell me what do you mean by main item here.

    in the above example they make use of for loop to navigate among the icons. what i need to do is that either i have to display icon name or i have to give message when cursor is placed on the icon. how do i do it. and is there any function to emboss icon when cursor is placed on it.

    thanks

    regards
    rashmi

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to display text string with icon to specify its functionality

    Quote Originally Posted by rashmi View Post
    could you please tell me what do you mean by main item here.
    RoundRectItem representing each item in the pad.

    how do i do it. and is there any function to emboss icon when cursor is placed on it.
    Do you really expect to be able to do anything useful without proper knowledge how things work? Read about graphics view architecture and classes available and then ask specific questions. It's not something you can implement in one minute with a single function call.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 0
    Last Post: 14th April 2010, 12:21
  2. display time as as string ?
    By Petr_Kropotkin in forum Newbie
    Replies: 26
    Last Post: 29th January 2010, 15:46
  3. How to display individual character of a string?
    By cooper in forum Qt Programming
    Replies: 2
    Last Post: 15th July 2009, 05:19
  4. possible to convert string/numbers to tray icon?
    By jarmok in forum Qt Programming
    Replies: 2
    Last Post: 19th July 2008, 18:34
  5. QTableView does not display time string correctly
    By ad5xj in forum Qt Programming
    Replies: 1
    Last Post: 5th August 2007, 20:35

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.