Pain of any extremity in a child often is confusing and can involve anywhere from the top to the bottom of it. There can be limp, fever, swelling, tenderness, rash, a break in the skin, or other systemic signs and symptoms. The vomiting you mention may just be your daughter's response to her discomfort, her anxiety related to the pain, or maybe the beginning of a more serious infection in the body. It is often helpful to consider what is just above, below, or around the spot, whenever there is pain somewhere. It could be the bone inside, the muscles and nerves involving that limb, or even the groin.
In this case, the hip is probably the first place to consider, particularly if your daughter has had any recent fever. We would not want to miss any infection involving the hip joint, as it could also have long-term consequences in the future. Involvement of the hip joint is not clearly identified on exam the way swelling of an ankle or knee can be seen. A good physical exam can usually localize where the problem is coming from, although sometimes X-rays and/or laboratory studies are needed. Check in with your daughter's doctor if this pain continues, she has fever, or just will not use her leg right.