Can’t look at you code currently. ToolStyleSpace & ToolStyleFlexibleSpace is supported on macOS & Linux only. Maybe you need to use ToolStyleSeparator for Windows (only)?
[quote=401806:@Martin Fitzgibbons].
But I also noticed that my separators and spacers disappear on Windows
[/quote]
In your Mac toolbar image I only see (flexible) spaces.
(Flexible) Space is not supported on Windows.
On Windows use a separator.
[quote] ToolStyleSeparator - The ToolButton is a separator. Not supported on macOS.
ToolStyleSpace - The ToolButton is a fixed-width space between ToolButtons. This is not supported on Windows, so no extra button or space appears.
ToolStyleFlexibleSpace - The ToolButton is a variable-width space between ToolButtons. It right-aligns the buttons to its right as the window is resized. This is not supported on Windows, so no extra space or button will be inserted.[/quote]
Martin:
On Mac OS, the used Icons are resized if needed, not on WIndows.
To be sure, in your project, use a 64 x 64 icon and run
Also, we do not know the kind of screen you use, so for the screen shot if the Mac Screen shot is done on a Retina monitor or the Windows x on a HiDPI monitor
I watched more carefully your screen shot and noticed the size of the WIndows one: 1366 x 768.
Try to run your application on a different monitor. Comparin this kind of display to others (2346 206 on the Mac OS screen shot) is a very bad idea. IMHO.
[quote=401820:@Emile Schwarz]Martin:
On Mac OS, the used Icons are resized if needed, not on WIndows.
To be sure, in your project, use a 64 x 64 icon and run
Also, we do not know the kind of screen you use, so for the screen shot if the Mac Screen shot is done on a Retina monitor or the Windows x on a HiDPI monitor [/quote]
since my toolbar is table driven, i need to resize the image before using it in the toolbar