Drawing an image in QT4

View: New views
7 Messages — Rating Filter:   Alert me  

Drawing an image in QT4

by David Villalobos Cambronero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I got the attached project, it draws an the image if I use QT, but doesn't with QT4, what I'm doing wrong?

 Regards


--
David



     

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Imprimir-0.0.1.tar.gz (16K) Download Attachment

Re: Drawing an image in QT4

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Hi, I got the attached project, it draws an the image if I use QT, but
> doesn't with QT4, what I'm doing wrong?
>
>  Regards
>
>
> --
> David

The DrawingArea calls Draw.Begin() and Draw.End() for you, so you don't have
to. Read the warning messages printed by Qt4: Qt3 allowed
Draw.Begin(DrawingArea1) to be called twice, not Qt4. It is less tolerant!

--
Benoît

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Re: Drawing an image in QT4

by David Villalobos Cambronero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

mmm I see, and how can I get the picture printed in a printer?

 Regards


--
David



----- Original Message ----
From: Benoît Minisini <gambas@...>
To: mailing list for gambas developers <gambas-devel@...>
Sent: Friday, August 28, 2009 2:05:47 PM
Subject: Re: [Gambas-devel] Drawing an image in QT4

> Hi, I got the attached project, it draws an the image if I use QT, but
> doesn't with QT4, what I'm doing wrong?
>
>  Regards
>
>
> --
> David

The DrawingArea calls Draw.Begin() and Draw.End() for you, so you don't have
to. Read the warning messages printed by Qt4: Qt3 allowed
Draw.Begin(DrawingArea1) to be called twice, not Qt4. It is less tolerant!

--
Benoît

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel



     

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Re: Drawing an image in QT4

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> mmm I see, and how can I get the picture printed in a printer?
>
>  Regards
>
>

Draw.Begin(Printer)

hImage = Image.Load(...)
Draw.Image(hImage...)

--
Benoît

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Re: Drawing an image in QT4

by David Villalobos Cambronero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In these case I have to use Draw.Begin(Printer)?

 Regards


--
David



----- Original Message ----
From: David Villalobos Cambronero <david_villalobos_c@...>
To: mailing list for gambas developers <gambas-devel@...>
Sent: Friday, August 28, 2009 2:28:22 PM
Subject: Re: [Gambas-devel] Drawing an image in QT4

mmm I see, and how can I get the picture printed in a printer?

Regards


--
David



----- Original Message ----
From: Benoît Minisini <gambas@...>
To: mailing list for gambas developers <gambas-devel@...>
Sent: Friday, August 28, 2009 2:05:47 PM
Subject: Re: [Gambas-devel] Drawing an image in QT4

> Hi, I got the attached project, it draws an the image if I use QT, but
> doesn't with QT4, what I'm doing wrong?
>
>  Regards
>
>
> --
> David

The DrawingArea calls Draw.Begin() and Draw.End() for you, so you don't have
to. Read the warning messages printed by Qt4: Qt3 allowed
Draw.Begin(DrawingArea1) to be called twice, not Qt4. It is less tolerant!

--
Benoît

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel



     

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel



     

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Re: Drawing an image in QT4

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> In these case I have to use Draw.Begin(Printer)?
>
>  Regards
>
>
> --
> David
>

How can Gambas send the image to postscript if you don't tell him?

--
Benoît

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Re: Drawing an image in QT4

by David Villalobos Cambronero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

jejejejejejeje sorry, I sent this mail before I got the other mail you sent, sf seems to be very slow sometimes.

 Regards


--
David



----- Original Message ----
From: Benoît Minisini <gambas@...>
To: mailing list for gambas developers <gambas-devel@...>
Sent: Friday, August 28, 2009 3:19:18 PM
Subject: Re: [Gambas-devel] Drawing an image in QT4

> In these case I have to use Draw.Begin(Printer)?
>
>  Regards
>
>
> --
> David
>

How can Gambas send the image to postscript if you don't tell him?

--
Benoît

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel



     

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel