<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton. in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615203#M3384</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;img = @"C:\Program Files\Autodesk\3ds Max 2023\en-US\html\cui.defaults.switcher\_images\max.daylight.png"

io = python.import "io"
base64 = python.import "base64"
blt = python.import "builtins"
f = io.open img "rb"
data = f.read()
b64 = (base64.b64encode data).decode "ascii"

html = blt.str.format "&amp;lt;b&amp;gt;{0}&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;img src='data: image/png;base64,{1}'&amp;gt;" "ToolTip" b64

qw = python.import "PySide2.QtWidgets"
bt = qw.QPushButton()
bt.setToolTip html
bt.show()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this maxscript...&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 19:21:04 GMT</pubDate>
    <dc:creator>denisT.MaxDoctor</dc:creator>
    <dc:date>2022-12-12T19:21:04Z</dc:date>
    <item>
      <title>[ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11601835#M3375</link>
      <description>&lt;P&gt;I have a grid of QPushButton that displays an image as their thumbnail icon. This is working correctly and behaves the way that I expect.&lt;/P&gt;&lt;P&gt;The issue is that since the size of the button is small, the image is not very clear(the thumbnail image is 200*200). So in order for the user to see what the thumbnail looks like in detail, I am using the &lt;STRONG&gt;ToolTip&lt;/STRONG&gt; option where I am displaying a larger image(1024*1024) for better visibility.&lt;/P&gt;&lt;P&gt;I have a Maya version of the same tool that is working and displays the tooltip image as expected. But for some reason, the tooltip fails to load the image on the max side. It only displays an empty tooltip popup with nothing in it. I have tried replacing the image with a string and that works. It's just that Max fails to load the image when used as a ToolTip.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Heres my code:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;self.fullImage = "path\\to\\image.jpg"
self.btn.setToolTip('&amp;lt;img src="{}"&amp;gt;'.format(self.fullImage))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 17:47:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11601835#M3375</guid>
      <dc:creator>deven.saxenaP7BD5</dc:creator>
      <dc:date>2022-12-06T17:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11605577#M3376</link>
      <description>&lt;P&gt;when you say "fails" does that mean it's throwing some kind of "error message" or just showing nothing?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 02:47:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11605577#M3376</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-12-08T02:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11607496#M3377</link>
      <description>&lt;P&gt;Hi Denis, no errors this time. It just shows an empty tooltip without an image.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 19:13:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11607496#M3377</guid>
      <dc:creator>deven.saxenaP7BD5</dc:creator>
      <dc:date>2022-12-08T19:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11607708#M3378</link>
      <description>&lt;P&gt;ok... that's what was expected.&lt;/P&gt;&lt;P&gt;Maya's Python framework supports such thing as a 'resource path', so you can point to this path as a directory for your images. Max doesn't support it (or at least I don't know how to do it).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way I know how to add images to ToolTip is using Base64 data format (pseudo-code):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;img = @"C:\the-path\the-name.png"

pixmap = qui.QPixmap img
buffer = qcore.QBuffer()
buffer.open qcore.QIODevice.WriteOnly
pixmap.save buffer "PNG" quality:100
bim = xpy.builtin.unicode ((buffer.data()).toBase64())
html = xpy.builtin.unicode.format "&amp;lt;img src='data&amp;amp;colon;image/png;base64,{}'&amp;gt;" bim

bt = qwidgets.QPushButton()
bt.setToolTip html
bt.show()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use 'unicode' in my snippet to make it works in MAX 2020... version 2022+ works fine with 'str'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 20:55:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11607708#M3378</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-12-08T20:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11607796#M3379</link>
      <description>&lt;P&gt;I'm pretty sure there is a shorter way to get Base64. ... something: QFile -&amp;gt; QByteArray -&amp;gt; base64 string...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 21:35:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11607796#M3379</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-12-08T21:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11607896#M3380</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1634609"&gt;@denisT.MaxDoctor&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I'm pretty sure there is a shorter way to get Base64. ... something: QFile -&amp;gt; QByteArray -&amp;gt; base64 string...&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;LI-CODE lang="general"&gt;img = @"C:\the-path\the-name.png"
f = qcore.QFile img
f.open qcore.QIODevice.ReadOnly	
b = (f.readAll()).toBase64()
html = pyformat "&amp;lt;img src='data&amp;amp;colon;image/png;base64,{}'&amp;gt;" b&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 22:23:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11607896#M3380</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-12-08T22:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615009#M3381</link>
      <description>&lt;P&gt;Hi Denis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for looking into this. I tied your recommendation and unfortunately, I am not able to get the toolTip to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked into the base64 thing and maybe I am not plugin it correctly. Here's what I have in my code. Also, this is in Python.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;img = "path/to/image.png"

with open(img, "rb") as image_file:
    image_data = image_file.read()

image_data_base64 = base64.b64encode(image_data)

pixmap = QtGui.QPixmap()
pixmap.loadFromData(base64.b64decode(image_data_base64))
testButton.setToolTip('&amp;lt;b&amp;gt;%s&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;img src="%s"&amp;gt;' % ("ToolTip", pixmap))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 17:54:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615009#M3381</guid>
      <dc:creator>deven.saxenaP7BD5</dc:creator>
      <dc:date>2022-12-12T17:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615072#M3382</link>
      <description>&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;img = "path/to/image.png"

with open(img, "rb") as image_file:
    image_data = image_file.read()
image_data_base64 = base64.b64encode(image_data)
testButton.setToolTip('&amp;lt;b&amp;gt;%s&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;img src="data: image/png;base64,%s"&amp;gt;' % ("ToolTip", image_data_base64))	&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 18:43:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615072#M3382</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-12-12T18:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615093#M3383</link>
      <description>&lt;P&gt;I already tried that Denis. It does not work on my end. The code that I shared above was to try and load the image first before plugging it into ToolTip and hence the use of Pixmap.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just for sanity, I again tried your code as well, and still no success. Just curious were you able to get this to work on your end by any chance?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 18:35:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615093#M3383</guid>
      <dc:creator>deven.saxenaP7BD5</dc:creator>
      <dc:date>2022-12-12T18:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615203#M3384</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;img = @"C:\Program Files\Autodesk\3ds Max 2023\en-US\html\cui.defaults.switcher\_images\max.daylight.png"

io = python.import "io"
base64 = python.import "base64"
blt = python.import "builtins"
f = io.open img "rb"
data = f.read()
b64 = (base64.b64encode data).decode "ascii"

html = blt.str.format "&amp;lt;b&amp;gt;{0}&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;img src='data: image/png;base64,{1}'&amp;gt;" "ToolTip" b64

qw = python.import "PySide2.QtWidgets"
bt = qw.QPushButton()
bt.setToolTip html
bt.show()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this maxscript...&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 19:21:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615203#M3384</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-12-12T19:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615208#M3385</link>
      <description>&lt;P&gt;it's MAX 2023 of course&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 19:22:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615208#M3385</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-12-12T19:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615564#M3386</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Awesome that worked. For those who are looking for the python version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;import io
import base64
import builtins
img = "path/to/image.png"
f = io.open(img, "rb")
data = f.read()
b64 = base64.b64encode(data).decode("ascii")
html = "&amp;lt;b&amp;gt;{0}&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;img src='data: image/png;base64,{1}'&amp;gt;".format("ToolTip", b64)
self.btn.setStyleSheet("QToolTip { width: 1024px; }")
self.btn.setToolTip(html)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overall experience is very disappointing. It's slow since it needs to do the conversion and sometimes fails to load an image before ToolTipDuration kicks in. Is this the only solution available?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 22:19:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615564#M3386</guid>
      <dc:creator>deven.saxenaP7BD5</dc:creator>
      <dc:date>2022-12-12T22:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615588#M3387</link>
      <description>&lt;P&gt;you can show tooltip when the "html" string is ready.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 22:36:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615588#M3387</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-12-12T22:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615601#M3388</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11983218"&gt;@deven.saxenaP7BD5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Is this the only solution available?&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P dir="ltr"&gt;another solution is to use the image as background for the tooltip. It can be set with styleSheet:&lt;BR /&gt;"QToolTip&amp;nbsp;{&amp;nbsp;background: url(&amp;lt;path/&amp;lt;name&amp;gt;.png); ... }"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 22:44:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615601#M3388</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-12-12T22:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615617#M3389</link>
      <description>Yes, but for some reason, it fails to load 1024*1024(1MB in size). Even if I disable the tooltip duration. I haven't looked into why that is happening but it looks like it's getting stuck while loading an image and somehow just stalls and shows a sliced version of the image. When I try to load a smaller image 200*200(2Kb) it works better but not the same when we compare it with Maya. It fails to load even that image sometimes and I have to move my mouse to another button and when I hover back, it loads the entire image. But still, a lot better and is workable.&lt;BR /&gt;&lt;BR /&gt;I need to move on to something else for now but I will keep looking into this. Mostly now it's about troubleshooting what impact image size is making and how can we force max to load the entire image and not get a sliced image.&lt;BR /&gt;&lt;BR /&gt;I appreciate you looking into this Denise. Thank you for all your help.</description>
      <pubDate>Mon, 12 Dec 2022 22:51:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615617#M3389</guid>
      <dc:creator>deven.saxenaP7BD5</dc:creator>
      <dc:date>2022-12-12T22:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615675#M3390</link>
      <description>&lt;P&gt;when I load a large image (2048x2048) as tooltip background, I don't have any side effects. Everything loads pretty fast and shows smoothly.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 23:37:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11615675#M3390</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-12-12T23:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11747027#M3391</link>
      <description>&lt;P&gt;Hi Denis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had some time to look into this. While I managed to get the image to show up, It looks like the width is locked somehow and as a result, it fails to display the entire image. Also fails to wrap text and the width ends before displaying the entire text. I don't know where this width restriction is coming from. Any recommendations?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tooltip text is set following the rich text format and the image is decoded with base64 which we spoke about earlier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 04:44:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11747027#M3391</guid>
      <dc:creator>deven.saxenaP7BD5</dc:creator>
      <dc:date>2023-02-11T04:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11752595#M3392</link>
      <description>&lt;P&gt;it seems that here we meet with an insurmountable obstacle in the face of #maximum-width of ToolTip. This can be defined at the application (MAX) level and looks as ~200px. My attempts to somehow change this (using, for example, StyleSheet) were unsuccessful. However, everything shows fine using QToolTip and its #showText method.&lt;/P&gt;&lt;P&gt;What type of event to use in this case is up to you ... you can just use the ToolTip event, or you can use MouseButtonPress with RightButton, which looks even more convenient, since it does not involve random occurrence.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 03:40:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11752595#M3392</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2023-02-14T03:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: [ Pyside ] Not able to get images to work as ToolTip for QPushButton.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11752882#M3393</link>
      <description>&lt;P&gt;Hi Denis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found an alternative, instead of using a tooltip, I am now launching a dialog upon left click that comprises a label, and that label is connected with my image via pixmap, left click menu items from before have been connected to right click menu items.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is better in terms of user experience as well. Tooltip was the straightforward solution, certainly for Maya but for max until we can fix this "cap" issue, I feel this is serving my team's purpose for now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 07:25:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pyside-not-able-to-get-images-to-work-as-tooltip-for-qpushbutton/m-p/11752882#M3393</guid>
      <dc:creator>deven.saxenaP7BD5</dc:creator>
      <dc:date>2023-02-14T07:25:32Z</dc:date>
    </item>
  </channel>
</rss>

