×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    47

    how to showing tool tips uopon a Qbutton

    Hello all,

    i am developing an application using Qt for symbian and i used Qbutton .

    i want to show what is the work of that button so thats why i need TOOLIPS.

    So please help me how do i show a tool tips for Qbuttons

    With regards

    shakti

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

    Re: how to showing tool tips uopon a Qbutton

    Use QWidget::setToolTip()

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    47

    Re: how to showing tool tips uopon a Qbutton

    Thank u for replying me danill

    But i am not getting how to use that code ,please tell me how

    do i add too tips for a button,i tried this code but not working at all.

    like Qpushbutton ok = new QPushbutton("OK");
    ok->setTolltips("OK BUTTON");

    is does not working ,

    Please help me how do i solve this problem.

    with regards

    shakti

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

    Re: how to showing tool tips uopon a Qbutton

    Quote Originally Posted by shaktiqt123 View Post
    like Qpushbutton ok = new QPushbutton("OK");
    ok->setTolltips("OK BUTTON");

    is does not working
    Tooltip will popup when mouse pointer is over the button.

  5. #5
    Registered User
    Join Date
    Dec 2009
    Posts
    47

    Re: how to showing tool tips uopon a Qbutton

    Thank u agian danill for reply me.

    IS it possible in case of touch screen mobile application .When i touch

    at that time the tool tips will display.

    i try in my emulator but it is not coming.

    So please give me some solution.

    with regards

    shakti.

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

    Re: how to showing tool tips uopon a Qbutton

    Quote Originally Posted by shaktiqt123 View Post
    IS it possible in case of touch screen mobile application .When i touch
    at that time the tool tips will display.
    Naturally it's very different with touch screens.
    You should listen for QMouseEvent of type QEvent::MouseButtonRelease (or QEvent::MouseButtonPress)
    and use QToolTip::showText() and QToolTip::hideText()
    http://doc.trolltech.com/4.6/qtooltip.html#showText
    http://doc.trolltech.com/4.6/qtooltip.html#hideText

Posting Permissions

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