[Interest] Help understanding style sheets

graham labdon graham.labdon at hotmail.co.uk
Tue Nov 26 14:52:17 CET 2013


Hi
Just found I need to implement paintEvent in my custom class

From: graham.labdon at hotmail.co.uk
To: interest at qt-project.org
Date: Tue, 26 Nov 2013 13:43:06 +0000
Subject: [Interest] Help understanding style sheets




Hi

In QDesigner I have a main form containing 1 widget.

I am able to set the style sheet so that it has a border image –


border-image: url(:/TestStackedWidget/EMU Index Background.png);


This works and I get a border image displayed

	But I want this widget to be one of my custom widgets so I promote it via designer


	When the program is run the border image is not displayed and I do not understand why


	I have tried setting the style sheet programtically –



ui.page->setStyleSheet("{border-image: url(:/TestStackedWidget/Background.png)};");


orui.page->setStyleSheet("MyWidget#page {border-image: url(:/TestStackedWidget/Background.png)};");

but to no avail

	I would be grateful if someone could explain what is going on


	Thanks
 		 	   		  

_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131126/3e77e991/attachment.html>


More information about the Interest mailing list