Usually, when creating a quadtree, you are given a list of
points, each one with an 'x' and 'y' coordinate. So, first of all, you'll have to figure out the full range of 'x' and 'y' values - unless that is known beforehand.
Then you can sub-divide the range of both dimension in 2 halves, resulting in
four quadrants: upper left, upper right, lower left, and lower right. Those are the four child-nodes of the "root" node. You then assign each of the given input points to one of those four quadrants (child-nodes), depending on where it is located.
If any of the four quadrants still contains
more than
one point, then it has to be further sub-divided, again into
four sub-quadrants, in a "recursive" fashion. This goes on, until
all leaf-node contain
at most one point.
See this example:
https://opendsa-server.cs.vt.edu/ODSA/Books/vt/cs3114/spring-2017/Test_1219/html/_images/PRexamp.png