Tooltip-like squares on a QCustomPlot widget

2019-02-26 02:41发布

问题:

I am using QCustomPlot in Qt Creator. I haven't specified any tooltips for my widget or anything. When I hold down my cursor on the plot without moving, an empty tooltip-like thing appears. I am wondering how to turn this off. I appreciate any hint in this matter.

回答1:

Thanks for help guys, in the MainWindow.ui file I had to remove this part of code (it was auto generated):

<property name="toolTip">
   <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>