[QT] Syntaxfehler before '->' token
-
Hallo!
Wenn ich in QT z.B. die Höhe eines widgets haben will (Form->frame3->height()), spuckt der Compiler die im titel genannt Fehlermeldung aus. Wenn ich die '->' durch '.' ersetze kommt die gleiche Meldung, nur eben mit nem '.'. Wenn ich das "Form->" weglasse beschwert er sich dass frame3 nicht definiert ist.
Es kann doch nicht so schwer sein die Höhe zu bekommen?Some more Code:
/* this will be called by xine, if it wants to know the target size of a frame */static void dest_size_cb(void *data, int video_width, int video_height, double video_pixel_aspect, int *dest_width, int *dest_height, double *dest_pixel_aspect) { *dest_width = Form->frame3->width(); *dest_height = Form->frame3->height(); *dest_pixel_aspect = Form->frame3->width()/Form->frame3->height(); } /* this will be called by xine when it's about to draw the frame */ static void frame_output_cb(void *data, int video_width, int video_height, double video_pixel_aspect, int *dest_x, int *dest_y, int *dest_width, int *dest_height, double *dest_pixel_aspect, int *win_x, int *win_y) { *dest_x = Form.frame3.x(); *dest_y = Form.frame3.y(); *win_x = Form->x(); *win_y = Form->y(); *dest_width = Form->frame3->width(); *dest_height = Form->frame3->height(); *dest_pixel_aspect = Form->frame3->width()/Form->frame3->height(); }
-
Hat sich erledigt.
Funktionen müssen teil der Klasse sein.
Schon klar.