Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

How to set the backgroud color & font colr for LineEdit ToolTip

$
0
0
Hi How to set the backgroud color & font colr for LineEdit ToolTip? I tried like this lineEdit->setCursorPosition(nPos); QToolTip::showText(lineEdit->mapToGlobal(QPoint()), “HI”); QPalette palette = QToolTip::palette(); palette.setColor(QPalette::ToolTipBase, Qt::yellow); palette.setColor(QPalette::ToolTipText, Qt::red); QToolTip::setPalette(palette); QToolTip::setFont(lineEdit->font()); This ois working but it is applying colr for all tooltips.I want it to beapplied only for selected LineEdits.

Viewing all articles
Browse latest Browse all 13965

Trending Articles