Qt-interest Archive, April 2007
Grid in QT ?
Message 1 in thread
Hi,
I am creating a circuit-board kind of an application.
For this I need the following :
1. Background grid on the canvas (QGraphicsView) and associated
functions like nudge
and increasing or decreasing grid points etc.
2. Routing between various blocks such that the wires do not intersect
the existing geometries.
Is there a class that would give me the desired functionalities ? I was
not able to locate it in the documentation.
Are there any sample codes that showcases how to do this ?
Many Thanx!!
Prateek
Message 2 in thread
Prateek Tiwari wrote:
> Hi,
>
> I am creating a circuit-board kind of an application.
> For this I need the following :
>
> 1. Background grid on the canvas (QGraphicsView) and associated
> functions like nudge
> and increasing or decreasing grid points etc.
For a grid you need to override QGraphicsScene::drawBackground
>
> 2. Routing between various blocks such that the wires do not intersect
> the existing geometries.
For routing around blocks have a look at the A* (A star) path finding
algorithm.
>
> Is there a class that would give me the desired functionalities ? I
> was not able to locate it in the documentation.
>
> Are there any sample codes that showcases how to do this ?
>
>
> Many Thanx!!
> Prateek
--
[ signature omitted ]