Results 1 to 5 of 5

Thread: Status Tip and Tool Tip Text

  1. #1
    Join Date
    Oct 2007
    Location
    Bangalore
    Posts
    27
    Qt products
    Qt4
    Platforms
    Windows

    Default Status Tip and Tool Tip Text

    Hi All,

    I have designed QMainWindow through designer . If i set the Status Tip or ToolTip text
    it's not coming . But the same this if i write it through code it coming. Through the Designer cann't we set the text???


    Thanks

    Chethana. K.

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Status Tip and Tool Tip Text

    yes, setting those in designer should work.
    (just to make sure: do you have added a statusbar to your mainwindow?)

  3. #3
    Join Date
    Oct 2007
    Location
    Bangalore
    Posts
    27
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Status Tip and Tool Tip Text

    Hi ,

    I have added the statusBar also even then if i set the statusTip Text through designer it's not comeing . Do we have to set any Other option in designer??

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Status Tip and Tool Tip Text

    What are you setting the status and tool tip for ? the main window, or some widget ?
    Both work fine for me.. tested by making a normal QMainWindow from designer and setting status and tool tip for it.

  5. #5
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Status Tip and Tool Tip Text

    try showing in normally in the .cpp code .. check is it showing perfectly ..
    use this
    QPoint value2 (x + 70, y );
    QString test = "hai hai";
    QToolTip::showText(value2, test);
    "Behind every great fortune lies a crime" - Balzac

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.