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.
↧