In short, is this possible? Currently, I employ a rather nasty method of just echoing my tooltips to a static label, but after going through the Qt reference, I came up with the following:
for _, t in ipairs(s) do
vboxes.toggles[t]:setStyleSheet([[
QLabel{
border-color: rgb(70, 70, 70);
border-width: 3px;
border-style: solid;
image: url("]] .. imagedir .. t .. [[_on.png");
}
QLabel::hover{
border-color: rgb(0, 238, 118);
border-width: 2px;
border-style: solid;
image: url("]] .. imagedir .. t .. [[_on.png");
}
QToolTip{
color: #ffffff;
background-color: #2a82da;
border: 1px solid white;
}
QToolTip::showText(100, "text", 100, QRect());
]])
end
Ideally, I'd want to pass the tooltip args via the hover method directly, but this being all new to me, I am not sure.
Assuming I am passing the method syntactically correctly, is this something that I could in fact get working or should I just drop it?
Thanks.