| The Following 9 Users Say Thank You to mikec For This Useful Post: | ||
|
|
03-27-2010
, 03:48 AM
|
|
Posts: 286 |
Thanked: 100 times |
Joined on Dec 2009
@ down south
|
#2
|
|
|
03-27-2010
, 03:53 AM
|
|
|
Posts: 3,753 |
Thanked: 1,075 times |
Joined on Oct 2007
@ East Lansing, MI
|
#3
|
|
|
03-27-2010
, 03:55 AM
|
|
|
Posts: 1,366 |
Thanked: 1,173 times |
Joined on Jan 2006
|
#4
|
|
|
03-27-2010
, 03:59 AM
|
|
|
Posts: 1,366 |
Thanked: 1,173 times |
Joined on Jan 2006
|
#5
|
Hey mikec, I see that you're using one of the newer clock themes that are available.
How did you get that to show on the desktop correctly?
I've tried all of the newer ones and the full image of the clock get's cut and gutted under shin's version in Diablo.

| The Following 5 Users Say Thank You to mikec For This Useful Post: | ||
|
|
03-27-2010
, 04:01 AM
|
|
|
Posts: 3,753 |
Thanked: 1,075 times |
Joined on Oct 2007
@ East Lansing, MI
|
#6
|
|
|
03-27-2010
, 04:14 AM
|
|
Posts: 286 |
Thanked: 100 times |
Joined on Dec 2009
@ down south
|
#7
|
@Addison QtSVG does all the magic, look at the quality also. Shin was rendering to a bitmap before putting to screen and you have to worry about size, antialiasing and all sorts of crap. Qt just seems to do its thing. Next step is to animate the hands, which with QGraphics view should be really simple, and will allow us to do some serious SVG animation in the future.
Have a look at this clock
http://tavmjong.free.fr/INKSCAPE/DRAWINGS/clock2.svg
|
|
03-27-2010
, 12:53 PM
|
|
|
Posts: 1,366 |
Thanked: 1,173 times |
Joined on Jan 2006
|
#8
|
| The Following 3 Users Say Thank You to mikec For This Useful Post: | ||
|
|
03-27-2010
, 12:56 PM
|
|
|
Posts: 3,203 |
Thanked: 1,378 times |
Joined on Nov 2009
@ Worthing, England
|
#9
|
|
|
03-27-2010
, 01:04 PM
|
|
Posts: 286 |
Thanked: 100 times |
Joined on Dec 2009
@ down south
|
#10
|
![]() |
| Thread Tools | Search this Thread |
|
And here is the 7 lines of code that has taken the best part of a day
to read the Cairo Clock Themes into Qt
def paintEvent(self, event): self.scene = QtGui.QGraphicsScene() for path in self.theme: self.svgItem=QGraphicsSvgItem(path) renderer=self.svgItem.renderer() self.scene.addItem(self.svgItem) self.grView.setScene(self.scene)N900_Email_Options Wiki Page
Last edited by mikec; 03-30-2010 at 11:26 AM.