QToolBox overlapped on top of window
-
Hey,
I'd like to have a ToolBox on the side which doesn't resize the main work area. Like 'overlay' the contents underneath.
Adding it to a HBoxLayout:
!http://img829.imageshack.us/img829/7843/smallf.jpg!And if I try parenting it to my QMdiArea, then it's a) transparent b) a fixed size that doesn't resize.
!http://img245.imageshack.us/img245/1999/parent.jpg!Strangely if I add a stylesheet, I at least get a background colour
!http://img541.imageshack.us/img541/8438/stylesheet.png! -
Like if I add it to the right, then opening the toolbox will cause the main area to resize by cutting off a section of the right.
Maybe I want a resize policy for the left hand side? Namely: when resizing from the left, dont cut off from the right but cut off instead from the left? Something like that tongue twister I've written :p
-
I've done some decent animations on QGraphicsView and got almost 25-30fps, so think its OK. Have you seen the Classic chips demo that ships with Qt?
"QSceneGraph":http://labs.qt.nokia.com/2010/05/18/a-qt-scenegraph/ promises a much better performing solution, but that may be for a future version of Qt?
-
yep I've seen it :) I'm actually using QGraphics extensively ("youtube video":http://www.youtube.com/watch?v=8tAASvcrJ78 "source code":http://github.com/genjix/)
So I'm a little apprehensive putting several QGraphicsView's inside another QGraphicsView while the whole thing is running off Python (pyside ;)
I will try it out though.
!http://img229.imageshack.us/img229/4347/screenec.png! -
yep, it's "free software":http://github.com/genjix/kartludox . I'm writing the server to be an IRC bot so people can easily host their own servers running games. And for real currency I'll setup one free service using "bitcoin":http://www.bitcoin.org/