Results 1 to 10 of 10

Thread: What type of tooltip is this? And how can i do it?

  1. #1
    Join Date
    Aug 2010
    Posts
    107
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default What type of tooltip is this? And how can i do it?

    If you set a tooltip on something ( for example a trayicon ) it will look like this:

    Screenshot-2.png

    But if you go on Ubuntu at the clock ( and every tooltip on ubuntu general) that will be shown:

    Screenshot-3.png

    So is this a different type of a tooltip or something?

    P.s
    I am setting the tooltip with this:
    Qt Code:
    1. ui->Button->setToolTip("Start Operation");
    To copy to clipboard, switch view to plain text mode 

  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: What type of tooltip is this? And how can i do it?

    Tray icons are treated specially in Unix systems as they are a bit "fake" so I can understand the tooltip for them may look different from other tooltips. But there is nothing you can do about it.
    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
    Aug 2010
    Posts
    107
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What type of tooltip is this? And how can i do it?

    I don't think so... Even if you leave the pointer on a program ( like Calculator on Ubuntu ) it will still be transperant and all that... There must be something... :/

    Screenshot.png

  4. #4
    Join Date
    Aug 2010
    Posts
    107
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What type of tooltip is this? And how can i do it?

    Quote Originally Posted by muisei View Post
    It is not a tooltip. What you showed on the picture is Notify OSD, which is developed by Ubuntu's team: https://wiki.ubuntu.com/NotifyOSD.
    It isn't NotifyOSD.. What i am saying is when you point somewhere ( for example an button ) a tip will be shown... NotifyOSD is just an Notify...

  5. #5
    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: What type of tooltip is this? And how can i do it?

    So what's exactly the problem? Could you explain it with words instead of saying that two pictures differ?
    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.


  6. #6
    Join Date
    Aug 2010
    Posts
    107
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What type of tooltip is this? And how can i do it?

    ok...
    I am setting the tooltip with this:
    Qt Code:
    1. ui->Button->setToolTip("Start Operation");
    To copy to clipboard, switch view to plain text mode 

    How to set a tip to to be like the ubuntu tips look like ... ?( see screenshots )

  7. #7
    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: What type of tooltip is this? And how can i do it?

    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.


  8. #8
    Join Date
    Aug 2010
    Posts
    107
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What type of tooltip is this? And how can i do it?

    haven't you understand what i am asking? is so simple.. you are the one you must know how to answer.. again you do not answer my question..

    Do you want to ask you again..? ok if you can't catch it...
    I am setting the tooltip with this:
    Qt Code:
    1. ui->Button->setToolTip("Start Operation");
    To copy to clipboard, switch view to plain text mode 

    So how to set the tips ( fro example of a button) exactly like the ubuntu one?

    I know that you know what i am asking... and because you do not know the answer you pretend that i am not asking questions with the right way and you give me a link . here it might help:
    http://tonguc.wordpress.com/2006/12/...the-smart-way/

  9. #9
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: What type of tooltip is this? And how can i do it?

    If we didn't know the answer, we just wouldn't reply.

    But we have replied, and given you the answer.

    The screen shot you have shown of Ubuntu is not a tool tip.

    Let me rephrase that in case you mis-understood: The second picture you have posted is not a tool tip.

  10. #10
    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: What type of tooltip is this? And how can i do it?

    I don't know what you are asking for. I don't know what you are getting now and what you want to get instead and why using QWidget::setToolTip() doesn't work the way you would want it to work. I don't know what "exactly like ubuntu one" means because the looks of a tooltip depends on the style you are using and possibly the desktop manager you are using. I'm tired of extracting information from people who think saying "I'm getting something else than I'd like to be getting" is a deep description of their problem and when they are asked for more information they keep repeating what they had already said.
    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: 7
    Last Post: 19th April 2011, 12:20
  2. Replies: 2
    Last Post: 22nd December 2009, 20:52
  3. Tooltip in Qwt
    By Ankitha Varsha in forum Qwt
    Replies: 5
    Last Post: 8th December 2009, 12:07
  4. ToolTip....
    By merry in forum Qt Programming
    Replies: 27
    Last Post: 3rd August 2007, 10:42
  5. Type and User Type
    By campana in forum Qt Programming
    Replies: 1
    Last Post: 27th February 2006, 23:22

Tags for this Thread

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.