Tooltip with text for Qt GUI Menu
Unsolved
General and Desktop
-
I want to set some text and make appear over mouse button (hit menu area)
Kindly advise
-
@JacobNovitsky
My advice: Read the documentation. -
#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(); }
-
@JacobNovitsky
What is this supposed to tell us? -
@Axel-Spoerl I assume this is OP's working code, solved.