Tool tip not showing up
-
hi guys,
I am learning how to use Qt and currently coding in a c++ src file. I am reading this assigned reading from my class https://wiki.qt.io/Qt_for_Beginners
but for some reason when I try adding a tooltip to my button it is not showing up. This happens even when I copy paste the code from this document.Here is a look at my code so far . Any help would be appreciated!
#include <QApplication>
#include <QPushButton>int main(int argc, char **argv)
{
QApplication app (argc, argv);QWidget window;
window.setFixedSize(500, 250);QPushButton *button = new QPushButton("!!!TEXT MESSAGE!!!", &window);
button->setToolTip("A tooltip");
button->setToolTipDuration(500);
button->setGeometry(30, 30, 200, 30);
QFont font("Courier");
button->setFont(font);
window.show();
return app.exec();
} -
hmm it like does not show up for me...i'll increase duration thank you !