Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Tooltip with text for Qt GUI Menu
Forum Updated to NodeBB v4.3 + New Features

Tooltip with text for Qt GUI Menu

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 357 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on last edited by
    #1

    I want to set some text and make appear over mouse button (hit menu area)
    Kindly advise
    qt.png

    Axel SpoerlA J 2 Replies Last reply
    0
    • J JacobNovitsky

      I want to set some text and make appear over mouse button (hit menu area)
      Kindly advise
      qt.png

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      @JacobNovitsky
      My advice: Read the documentation.

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      2
      • J JacobNovitsky

        I want to set some text and make appear over mouse button (hit menu area)
        Kindly advise
        qt.png

        J Offline
        J Offline
        JacobNovitsky
        wrote on last edited by JacobNovitsky
        #3

        @JacobNovitsky

        #include <QtWidgets>
        
        int main(int argc, char *argv[]) {
           QApplication app(argc, argv);
        
           // Create a QWidget
           QWidget widget;
        
           // Set the tooltip for the widget
           widget.setToolTip("This is a tooltip for the widget.");
        
           // Show the widget
           widget.show();
        
           return app.exec();
        }
        
        
        
        #include <QtWidgets>
        
        int main(int argc, char *argv[]) {
           QApplication app(argc, argv);
        
           // Create a QPushButton
           QPushButton button("Click me");
        
           // Set the tooltip for the button
           button.setToolTip("This is a tooltip for the button.");
        
           // Show the button
           button.show();
        
           return app.exec();
        }
        
        Axel SpoerlA 1 Reply Last reply
        0
        • J JacobNovitsky

          @JacobNovitsky

          #include <QtWidgets>
          
          int main(int argc, char *argv[]) {
             QApplication app(argc, argv);
          
             // Create a QWidget
             QWidget widget;
          
             // Set the tooltip for the widget
             widget.setToolTip("This is a tooltip for the widget.");
          
             // Show the widget
             widget.show();
          
             return app.exec();
          }
          
          
          
          #include <QtWidgets>
          
          int main(int argc, char *argv[]) {
             QApplication app(argc, argv);
          
             // Create a QPushButton
             QPushButton button("Click me");
          
             // Set the tooltip for the button
             button.setToolTip("This is a tooltip for the button.");
          
             // Show the button
             button.show();
          
             return app.exec();
          }
          
          Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          @JacobNovitsky
          What is this supposed to tell us?

          Software Engineer
          The Qt Company, Oslo

          JonBJ 1 Reply Last reply
          2
          • Axel SpoerlA Axel Spoerl

            @JacobNovitsky
            What is this supposed to tell us?

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Axel-Spoerl I assume this is OP's working code, solved.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved