diff -Naur a/qtruby4.rb b/qtruby4.rb
--- a/qtruby4.rb	2008-05-18 14:24:36.000000000 +0100
+++ b/qtruby4.rb	2008-05-18 14:24:28.000000000 +0100
@@ -1265,24 +1265,24 @@
   class Point < Qt::Base
     def inspect
       str = super
-      str.sub(/>$/, " x=%d, y=%d>" % [x, y])
+      str.sub(/>$/, " x=%d, y=%d>" % [self.x, self.y])
     end
     
     def pretty_print(pp)
       str = to_s
-      pp.text str.sub(/>$/, "\n x=%d,\n y=%d>" % [x, y])
+      pp.text str.sub(/>$/, "\n x=%d,\n y=%d>" % [self.x, self.y])
     end
   end
   
   class PointF < Qt::Base
     def inspect
       str = super
-      str.sub(/>$/, " x=%f, y=%f>" % [x, y])
+      str.sub(/>$/, " x=%f, y=%f>" % [self.x, self.y])
     end
     
     def pretty_print(pp)
       str = to_s
-      pp.text str.sub(/>$/, "\n x=%f,\n y=%f>" % [x, y])
+      pp.text str.sub(/>$/, "\n x=%f,\n y=%f>" % [self.x, self.y])
     end
   end
 
