Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Qt QGraphicsItem插入订购设置_Qt_Pyqt_Pyside - Fatal编程技术网

Qt QGraphicsItem插入订购设置

Qt QGraphicsItem插入订购设置,qt,pyqt,pyside,Qt,Pyqt,Pyside,有人知道如何让Qt遵循Qgraphicsitem的插入顺序,而parentItem应该在顶部 注: 我不想凭价值去做,我需要它来做另一份工作。 由于其他原因,也不希望创建QGraphicsSiteMgroup >stackBefore应该是解决方案,但不管有没有,它都会在底部绘制父项。尝试使用更改父项。请发布一个复制此问题的简化版本的代码。

有人知道如何让Qt遵循Qgraphicsitem的插入顺序,而parentItem应该在顶部

注: 我不想凭价值去做,我需要它来做另一份工作。 由于其他原因,也不希望创建QGraphicsSiteMgroup


>stackBefore应该是解决方案,但不管有没有,它都会在底部绘制父项。

尝试使用更改父项。请发布一个复制此问题的简化版本的代码。