Class QToolButton does not have a name named 'setToolTipDuration

I set the tooltip duration for tool buttons in Qt Creator design mode. The application works decently in Qt Creator.

But when I run the same application in a terminal command using make, followed by the qmake command, I get the following errors associated with each tool button that I added in design mode:

ui_mainwindow.h:377:22: error: ‘class QToolButtonhas no member namedsetToolTipDurationpointButton->setToolTipDuration(200000);

Why is the above error displayed when using the make command? How to make it work with make command?

+4
source share
1 answer

from Qt help:

toolTipDuration: int

This property was introduced in Qt 5.2.

You may have installed Qt on an OS with version lower than 5.2

+5

All Articles