Infinity
14th October 2012, 01:28
Hi,
I have created a QT application using QT Creator and I compiled a Linux version and a Windows version. For the design of the windows/widgets I'm using a stylesheet. I added that stylesheet to the windows directly in the designer.
My Question: Is it possible to assign different stylesheets for the different platforms directly in the designer or by modifying the XML-File which is created by the designer? I could simply use the setStyleSheet-Function of the window to set the different stylesheets manually but I would prefer to do that directly in the designer because then I have a preview of my design.
Is it maybe possible to use a resource file as stylesheet via designer or by modifying the XML-File? If that was possible, is could simply use different stylesheets for the different plattforms by using a platform condition in the project file.
I have created a QT application using QT Creator and I compiled a Linux version and a Windows version. For the design of the windows/widgets I'm using a stylesheet. I added that stylesheet to the windows directly in the designer.
My Question: Is it possible to assign different stylesheets for the different platforms directly in the designer or by modifying the XML-File which is created by the designer? I could simply use the setStyleSheet-Function of the window to set the different stylesheets manually but I would prefer to do that directly in the designer because then I have a preview of my design.
Is it maybe possible to use a resource file as stylesheet via designer or by modifying the XML-File? If that was possible, is could simply use different stylesheets for the different plattforms by using a platform condition in the project file.