rakslice / orion

Twitch Client using QT
GNU General Public License v3.0
1 stars 0 forks source link

[retro] the first time a tooltip screenshot is shown in a grid it doesn't appear correctly #11

Closed rakslice closed 6 years ago

rakslice commented 6 years ago

When you hover over an item in a grid (channels/vods/games) a tooltip is normally shown with a preview image and some text. However the first time you do this in a session the tooltip is corrupted -- typically it is positioned incorrectly and shows a potentially misaligned piece of image with no text.

There are a bunch of parameters for those tooltips that are set from dynamic bindings and my hunch is that that some parameter is getting set based on an uninitialized value and doesn't get updated again before the tooltip gets to the screen -- it may be possible to rework some of that logic to make sure things get evaluated in the expected order.

rakslice commented 6 years ago

Based on further testing, it doesn't seem to be a dynamic bindings problem.

It always coincides with Qt outputting a message about a geometry error, e.g.: QWindowsWindow::setGeometry: Unable to set geometry 820x512+3998+1243 on Tooltip_QMLTYPE_118/''. Resulting geometry: 1230x768+3998+1243 (frame: 0, 0, 0, 0, custom margin: 0, 0, 0, 0, minimum size: 0x0, maximum size: 16777215x16777215).

It tends to happen when the window has been moved to a different screen and the tooltip is appearing on the new screen for the first time.

rakslice commented 6 years ago