QToolTip is a class from the Qt Toolkit which provides tool tips (balloon help) for any widget.
Questions tagged [qtooltip]
16 questions
6
votes
2 answers
how to create tooltip for highlighted strings in QPlainTextEdit
I have a QPlainTextEdit and have some words highlighted in it now I want when I hover over it with the mouse it show me a tooltip that has description or something like that about this highlighted word something like this in QT IDE
but I don't know…

user7179690
- 1,051
- 3
- 17
- 40
6
votes
1 answer
QToolTip background-color is not clipped with border radius
I have styled my tooltips like this (not really that colors)
QToolTip {
border: 1px solid blue;
border-radius: 10px;
background-color: red;
}
But the background is not clipped at the corners:
Why is it not clipped?

wutzebaer
- 14,365
- 19
- 99
- 170
5
votes
1 answer
How to include tooltips for menu items in qt
I'm trying to add ToolTips on MenuBar Items using the tool properties but it didn't work... But on labels, pushbuttons and other widgets it seems to work pretty fine. Can anyone help me with this?
user12991669
3
votes
1 answer
Weird behaviour of QToolTip when it should follow the mouse who is over a QGraphicsItem
I've a QGraphicsView hows shows a QGraphicsScene which contains a QGraphicsItem. My Item implements the hoverMoveEvent(...) method that fires up a QToolTip.
I want that the tool tip to follows the mouse as it moves above of the item. This however…

dani
- 3,677
- 4
- 26
- 60
3
votes
1 answer
How to make QToolTip message persistent?
I want to make a qtooltip message persistent after I clicked the button. I plan to use qtimer to hide it by myself later, but the problem is as soon as I move mouse cursor away from the button rect, the message disappears, I want to make it stay…

Shuman
- 3,914
- 8
- 42
- 65
2
votes
0 answers
Qt QTooltip with image always landscape
I have a Qt c++ App but when I tried to add tooltip with image it shows correctly if image is landscape but if image is portrait then it will be rotated event the original file is portrait
any help !
Thanks in advance.
QByteArray byteArray;
QBuffer…

Amr Osman
- 119
- 2
- 10
2
votes
1 answer
How to remove drop shadow from QToolTip
I want to modify the style of all the tool tip windows in my application.
As an example, this QSS : (you can try it in the QtDesigner application)
QToolTip
{
border-radius: 10px;
border-style: solid;
border-width: 2px;
border-color:…

Aurelien
- 1,032
- 2
- 10
- 24
1
vote
1 answer
Qt: How to display a text consistently on the cursor, not depending on cursor position?
I want a text to be displayed persistently on the curser event when the cursor is moving, not depending on the cursor position. I used Qtooltip for this purpose. This is the code to show the text:
Widget::Widget(QWidget *parent)
:…

mahya
- 51
- 4
1
vote
1 answer
QToolTip Style Sheet not working if using QToolTip::showText
I'm trying to use QSS to customize the look of the tool-tip, it works. However, if I try showing the tooltip using QToolTip::showText function, it won't work as intended which means that the QToolTip style sheet doesn't apply to it probably?
My…

Frought
- 116
- 9
0
votes
0 answers
QT:Why tooltip set by qstylesheet is covered when the enabled property of A QAction object changes?
I have one QToolBar with two QActions, defined in .ui file.
Review

hiki
- 1
0
votes
1 answer
How to make Qtooltip corner round in pyqt5
How to make Qtooltip corner round in pyqt5. Tried many stylesheet but it does not work. The frame on Qtooltip remains same.

Anoop Kumar
- 137
- 10
0
votes
2 answers
How can I detect whether a tooltip is visible at a given moment?
I'm looking for a way to detect whether a Qt widget's ToolTip is visible at the moment when a particular key combination is pressed. If it is, I want to copy the ToolTip's text to the clipboard.
Specifically, I have a QListView containing…

Eos Pengwern
- 1,467
- 3
- 20
- 37
0
votes
1 answer
QTooltip unwanted behaviour. Icon from button is partly visible as background in the tooltip
So, I think this picture speaks for itself. The tooltip should have black text color and lightgrey background. Ok, if you look closely, the background is lightgrey. But text is white and the most important, the icon for enabled button is shown.…

M87
- 25
- 4
0
votes
1 answer
How to add ToolTip to QSlider on mouse move
I want to have tooltip for QSlider showing the current value of slider on mouse move in QT C++

Sreerekha N
- 31
- 1
0
votes
1 answer
Remove margin when setting an image in a QToolTip
I am trying to use an image as a tooltip on a QLabel. I am following the method described here : Use a picture or image in a QToolTip
But I get an automatic margin around that image, which I would like to remove. By making the border apparent in…

Andéol Evain
- 507
- 2
- 12