pablogil wrote:Updated to version 1.8a
easyw-fc wrote:pablogil wrote:Updated to version 1.8a
Hi I tried this new feature on FC 0.16 windows latest and it is fine
Then I tried to open some GUI Macro e.g.
http://www.freecadweb.org/wiki/index.ph ... oneConvert
or my kicad StepUp tools macro
and all text/buttons are with a bad/bigger font dimension
I use custom font size 120%, but in my macro I set font size, which seems not to be respected by the stylesheet
Is there anything I should add to the macro to give more compatibility to Stylesheets?
OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6458 (Git)
Build type: Release
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
pablogil wrote:Could you share a picture with me?
Could you also share a link to download your macro and try it out?
Code: Select all
# RotateX button
RotateX = QtGui.QPushButton('Rotate X', self)
# RotateY button
RotateY = QtGui.QPushButton('Rotate Y', self)
# RotateZ button
RotateZ = QtGui.QPushButton('Rotate Z', self)
pablogil wrote:I have just had a look to the macro in FreeCAD and the code: I think the problem is that your GUI is "fixed", I mean, you have placed the buttons at a exact point in the window while the normal way to layout a window is using other QT elements that serve as containers in order to finally let your buttons and stuff to dinamicaly flow depending on the window size.
ickby wrote:Once somebody changes the font size or changes the desktop style this fails as shown here.