Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom tab images are invisible. Posible error at "get_Width()" function. #285

Closed
StickySli opened this issue Nov 13, 2022 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@StickySli
Copy link

StickySli commented Nov 13, 2022

Describe the bug
After updating to v.1.5.5-beta.8_en.2022, the "appearance" using a "custom tab image" no longer works.

Reproduce the process
After hovering, the tab image disappears.

  • Disable the "use custom tab image" under "appearance" and apply.
  • Delete the QTTabBarException.log to clear the log trace.
  • Enable the "use custom tab image" under "appearance" and apply.
  • Hover over the tabs makes them black (text and image disappears).

Screenshot
explorer_1USEkZnmLf

System environment

  • .NET 版本: 2.0.50727.9164
  • 操作系统版本: 10.0.22000.0 Major: 10 环境: 64
  • QT 版本: DevBuild: 04/11/2022 16:59:00 (2.0.50727.9164)
  • 错误信息: DrawTab

Upload error log QTTabBarException.log

Reading through the log files it looks like the same error is repeated around the function "get_Width()":

Message ---
Parameter is not valid.
HelpLink ---

Source ---
System.Drawing
StackTrace ---
   at System.Drawing.Image.get_Width()
   at QTTabBarLib.QTabControl.DrawBackground(Graphics g, Boolean bSelected, Boolean fHot, Rectangle rctItem, Edges edges, Boolean fVisualStyle, Int32 index)
   at QTTabBarLib.QTabControl.DrawTab(Graphics g, Rectangle itemRct, Int32 index, QTabItem tabHot, Boolean fVisualStyle)
TargetSite ---
Int32 get_Width()--------------

PD: I'm the author of qttabbar-dark-mode-skin.

@StickySli StickySli added the bug Something isn't working label Nov 13, 2022
@indiff
Copy link
Owner

indiff commented Nov 14, 2022

thanks ! i will fix it in the next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants