QWidget Raise
-
I am having Qwidget as LIne and a Qframe contains and Image, .. But my Qwidget goes at the back of Image? can one can help me With this
-
Hi and welcome to devnet,
Without more information like the code you use to create your widget, it's pretty much Crystal Ball Debugging (™). Anyway, here's a shot in the dark: Did you use a layout e.g. QVBoxLayout to setup your widget ?
-
no i havent used any layout , kindly check the image i uploaded http://postimg.org/image/ddt2tm3h3/
and can u let me know if this can be done by Zorder .. In image The line are my Widget which should come Above the image -
@SGaist said:
Hi and welcome to devnet,
Without more information like the code you use to create your widget, it's pretty much Crystal Ball Debugging (™). Anyway, here's a shot in the dark: Did you use a layout e.g. QVBoxLayout to setup your widget ?
no i havent used any layout , kindly check the image i uploaded http://postimg.org/image/ddt2tm3h3/
and can u let me know if this can be done by Zorder .. In image The line are my Widget which should come Above the image -
Can you also show what you would like to have exactly ?
-
If you dont's use layout, the stack order of widgets flows creation order. Try create the QFrame firstly and then the line widget.
-
http://postimg.org/image/7yq50f5jp/ this is hoW i actually want my LineWidget Should come Over the Li frame.
-
What is the purpose of your software ? Depending on what you would like to do, the QGraphicsView framework might be more suited.
-
i am using and animation like my line should move to certain position, But the line should above and image .... can u help me With QgraphiciItem as i am new , supose i have Then Widget in a Form and i wanna Assign setZvalue , how to Do that?
-
If you are using QGraphicsViewItems you can call setZValue on the desired item