I was just wondering if QTP can detect a GUI issue on a web page, like say a misaligned select button. As per I know, QTP will identify the button by its details in object repository and that does not depend on where its location is. QTP will recognize that the button is on web page and click on it; this even if it is not on the correct place..
While knowing which objects appear on the screen, try capturing the x or y coordinates (whichever is appropriate) for each object. Then compare each value. Keep in mind that you're not trying to identify the objects by coordinatets; you're just checking them to see if they are in alignment.
Say you're checking whether a group of web edit fields are vertically aligned. You'd capture the y or abs_y coord. for each field and then compare all of them and verify that they're all consistent.
Since I've never tried this before, I'll leave it to you to decide whether or not to use the absolute or relative x,y coords. Absolute sounds more reliable, but then again, you're looking for alignment errors, and it seems that the relative coordinate would be more succeptible to that. I could be wrong though.