Results 1 to 7 of 7

Thread: Compiler error when connecting a QAction of a menu bar

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Compiler error when connecting a QAction of a menu bar

    Just set the tool tip property of each widget (QWidget::setToolTip()) you add to the status bar and Qt will handle them for you.

  2. #2
    Join Date
    Jun 2012
    Location
    Spain
    Posts
    19
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compiler error when connecting a QAction of a menu bar

    Great! It worked, and it was much easier than I thought. I only needed to type correctly "setToolTip" (instead of "setWhatsThis" in my first try) in the declaration of the hints:

    st_1->setToolTip("Info left");
    ...
    st_2->setToolTip("Info middle");
    ...
    st_3->setToolTip("Info right");
    Thanks!

Similar Threads

  1. Replies: 2
    Last Post: 29th August 2012, 17:57
  2. Connecting menu click with action
    By thefatladysingsopera in forum Newbie
    Replies: 1
    Last Post: 23rd August 2011, 13:52
  3. no compile error, but error on run with QMenu QAction
    By sincnarf in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2011, 11:05
  4. fatal error C1001: An internal error has occurred in the compiler
    By noodles in forum Installation and Deployment
    Replies: 0
    Last Post: 12th August 2010, 11:24
  5. Context menu for QAction
    By drhex in forum Qt Programming
    Replies: 4
    Last Post: 29th September 2009, 18:01

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
  •  
Qt is a trademark of The Qt Company.