thanks for reply ji..
i think u are right ... because if i use own QPen and drawText the QPainter its working perfectly ... why we actually need clipping in my case ... ?
thanks for reply ji..
i think u are right ... because if i use own QPen and drawText the QPainter its working perfectly ... why we actually need clipping in my case ... ?
"Behind every great fortune lies a crime" - Balzac
because in a QGraphicsView say baseViewThe better question is, why you need a QGraphicsView inside a QGraphicsView!
i embed a QStackedWidget with lots of pages ... individual pages i am having a graphicsView added to it ..
"Behind every great fortune lies a crime" - Balzac
see my pages
"Behind every great fortune lies a crime" - Balzac
Ok, seems to me like a normal button based application with a fixed stacked widget in the middle. So first why do you need graphics view anyway? aren't custom button widgets enough? That would make the whole thing very easy.
Second, inside your staked widget there seems to be only other items, so create a item for each page, put child items in the "page item", and then just show the current page item and hide the others. Since child items are automatically hidden when the parent is, it is not a big deal.
btw... what is your application?? looks like an old monochorme display apps we use to have in MS-DOS days..
actually i am developing the init level of a embedding project ... it will be migrated to a board where lots of device drivers and communication handlers integrated to it ... and another thing is the board is having a TID screen ..
here i am showing only two of my twenty pages ...
i will animate some items in few pages and more it should be stretched from 800x600 to 1400x1200 screen between two displays ..
its better for me to use QGraphics for resize event ..
"Behind every great fortune lies a crime" - Balzac
and lykurg i can use your suggestion of hide and show the item pages.
but the index of stackedWidget were probed to communication past one month ..
currently i cant change that one ..
i am only one month experience in GUI designing when i start the development of app ...
i know my code is novice way but next time i will be better ..
"Behind every great fortune lies a crime" - Balzac
Ok, that's tough luck, but could you at least change the buttons around the stacked widget? because then you would have a QWidget with inside layouted buttons and a stacked widget, without a graphics view inside a view. That would be also good for the speed performance...
EDIT: see attached mockup
Last edited by Lykurg; 22nd July 2009 at 12:02.
wagmare (22nd July 2009)
yes i will and thanks for whole suggestion and now i will change it ...
"Behind every great fortune lies a crime" - Balzac
Bookmarks