[Qt-interest] Try to develop a graphics application
程梁
chengliang.soft at gmail.com
Thu Nov 26 13:11:56 CET 2009
Yeah, I know Krita on KDE. But it is too complex to read its code.
Maybe there are some documents about the code?
2009/11/26 <qt-interest-request at trolltech.com>
> Send Qt-interest mailing list submissions to
> qt-interest at trolltech.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.trolltech.com/mailman/listinfo/qt-interest
> or, via email, send a message with subject or body 'help' to
> qt-interest-request at trolltech.com
>
> You can reach the person managing the list at
> qt-interest-owner at trolltech.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Qt-interest digest..."
>
>
> Today's Topics:
>
> 1. Re: Clean way of invoking the default email client using Qt
> (equivalent of clicking on a "mailto") ? (Manish Chakravarty)
> 2. Re: Enhanced monochrome conversion (Oliver.Knoll at comit.ch)
> 3. Re: Try to develop a graphics application (LukasT.dev at gmail.com)
> 4. Re: LGPL and static linking (Frank Mertens)
> 5. Re: Fwd: QT OpenCascade application Problem (Sujan Dasmahapatra)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 26 Nov 2009 16:32:47 +0530
> From: Manish Chakravarty <manishchaks at gmail.com>
> Subject: Re: [Qt-interest] Clean way of invoking the default email
> client using Qt (equivalent of clicking on a "mailto") ?
> To: KC Jones <kc at asperasoft.com>
> Cc: qt-interest at trolltech.com
> Message-ID:
> <b4dbee910911260302s1c5922f8p5039f4baa7a706c2 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hey guys,
>
> I figured out the
> QDesktopServices::openUrl(QUrl("mailto:someone at example.com
> ?body=Something+you+want+to+send"));
> thing.
>
> But there is further problem; I cannot use it to send HTML emails or
> emails
> with attachements.
> Thus it is unsuitable for my purpose.
>
> Thanks for you time!
> -- Manish Chakravarty
>
> On Thu, Nov 19, 2009 at 11:21 PM, KC Jones <kc at asperasoft.com> wrote:
>
> > Using mailto: urls is your best bet. You can specify a message body
> > that way. The syntax is described in great detail at the IETF site
> > here: http://www.ietf.org/rfc/rfc2368.txt
> >
> > There may be some risk of having the system reject or mangle your url
> > request due to spam filters. Not too sure about all that...
> >
> > On Thu, Nov 19, 2009 at 4:58 AM, Manish Chakravarty
> > <manishchaks at gmail.com> wrote:
> > > Hello All,
> > > I have a QTextEdit class with some HTML in it.
> > > I want my Qt application to do the following , given an email address.
> > > - Launch the default email client
> > > - Populate the "To" filed with the email address
> > > - Leave the subject line empty
> > > - Populate the body of the email with the HTML inside the QTextEdit.
> > > I know webpages do (1) & (2) mentioned above using "mailto" links.
> > > Wondering how to get the equivalent behavior with Qt 4.5
> > > Thanks in advance!
> > > --
> > > Manish Chakravarty
> > > Blog: http://manish-chaks.livejournal.com/
> > > LinkedIn: http://www.linkedin.com/in/manishchakravarty
> > > Twitter: http://twitter.com/ManishChaks
> > > Facebook: http://www.facebook.com/manish.chakravarty
> > >
> > > _______________________________________________
> > > Qt-interest mailing list
> > > Qt-interest at trolltech.com
> > > http://lists.trolltech.com/mailman/listinfo/qt-interest
> > >
> > >
> >
>
>
>
> --
> Manish Chakravarty
> Blog: http://manish-chaks.livejournal.com/
> LinkedIn: http://www.linkedin.com/in/manishchakravarty
> Twitter: http://twitter.com/ManishChaks
> Facebook: http://www.facebook.com/manish.chakravarty
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.trolltech.com/pipermail/qt-interest/attachments/20091126/fa79907d/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Thu, 26 Nov 2009 12:03:51 +0100
> From: <Oliver.Knoll at comit.ch>
> Subject: Re: [Qt-interest] Enhanced monochrome conversion
> To: <qt-interest at trolltech.com>
> Message-ID:
> <C10F29AB06447B4881FC0DE1E302E2F2044F3AFE21 at sg000036.corproot.net>
> Content-Type: text/plain; charset="us-ascii"
>
> Andre Somers wrote on Thursday, November 26, 2009 11:47 AM:
>
> >> It's easy to convert any image to monochrome format by using
> >> QImage::convertToFormat like this:
> >> ...
> > Hi, interesting problem, but I'd say there is a relatively
> > straitforward way to get an answer: read the GIMP sourcecode
>
> Or let a dedicated image processing library do the job. ImageMagick (
> http://www.imagemagick.org) does the trick maybe. It requires some work to
> convert between QImage and the ImageMagick (I'd recommend the C++ API,
> http://www.imagemagick.org/Magick++/)
> http://www.imagemagick.org/Magick++/Image.html, but it is doable (I
> remember though that I went the "cheap" but reliable way to store the QImage
> in-memory as PNG, and read it from memory as PNG into the Magick++ Image -
> but it should be doable by reading the "raw" memory from QImage and put it
> into the Image, but then you have to take care about memory alignment,
> colour depth etc.)
>
> Once you have your data into your Magick++ Image object, check out:
>
>
> http://www.imagemagick.org/Magick++/Image.html#Image%20Manipulation%20Methods
>
>
> Cheers, Oliver
> --
> Oliver Knoll
> Dipl. Informatik-Ing. ETH
> COMIT AG - ++41 79 520 95 22
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 26 Nov 2009 12:09:42 +0100
> From: "LukasT.dev at gmail.com" <lukast.dev at gmail.com>
> Subject: Re: [Qt-interest] Try to develop a graphics application
> To: qt-interest at trolltech.com
> Message-ID: <200911261209.42674.LukasT.dev at gmail.com>
> Content-Type: Text/Plain; charset="utf-8"
>
> On Thursday 26 November 2009 02:04:26 ?? wrote:
> > Hi, there! I want to develop an application about graphics such as image
> > processing
> > and other relative functions. It may much like GIMP.
> >
> > In order to support complex layers, I use Graphics View Framework. Now I
> > have a
> > problem, I want to use FreeImage or CImg to process image, but I don't
> know
> > how
> > to use them together. Say, how to tranlate Qt image data to FreeImage
> data?
> > Or
> > which library should I choose?
> >
> > Thank you all!
> >
>
> Hi,
>
> maybe you could use some of libraries from Krita (http://krita.org). It is
> Qt
> and KDE based image processing app and we have many interesting stuff
> there.
> If you have father questions about what Krita can offer you for developing,
> just show up at #krita at irc.freenode.net or mail to mailing list at
> https://mail.kde.org/mailman/listinfo/kimageshop
>
> But it is rather complex app.
>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 26 Nov 2009 12:17:13 +0100
> From: Frank Mertens <frank at cyblogic.de>
> Subject: Re: [Qt-interest] LGPL and static linking
> To: qt-interest at trolltech.com
> Message-ID: <4B0E63B9.30700 at cyblogic.de>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Stefan Josefsson wrote:
> >
> > Hi Frank and all others that has been trying to give me an answer so far!
> >
> > I have spent many days in trying to configure Qt and also to find the
> > right compiler switches to use. I end up with a statically linked exe
> > file that is 16 MB. I have then:
> > - Used qconfig to strip away things that I do not need.
> > - Used compiler optimization.
> > - Compiled so that unused code is not included in the exe file (btw,
> > this is only possible when linking statically which is one of the
> > reasons of why statical linking is preferable).
> > - Stripped the binary.
> >
> > The statically linked application starts in less than a second on my
> > target while the corresponding dynamically linked application needs
> > about 10 seconds. One way to improve the startup time for the
> > dynamically linked application would probably be to use "prelinking",
> > but then again there may be some issues with the LGPL license as a
> > prelinker makes it impossible to exchange the shared library.
> >
>
> I'm currently at 18 MB on Linux without ever thinking much about
> optimizing the package size (dynamically linked, x86) and I'm shipping
> more than just Qt...
>
> My configure flags for Qt 4.5.2 (maybe some accidental magic in here?):
>
> clear
> printf "o\nyes\n" | \
> ./configure \
> -release \
> -fast \
> -prefix $PWD \
> -optimized-qmake \
> -no-pch \
> -no-phonon \
> -no-qt3support \
> -no-stl \
> -no-xmlpatterns \
> -no-scripttools \
> -make 'libs tools docs' \
> && make
>
> BTW I'm using cmake for building my apps.
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 26 Nov 2009 16:54:34 +0530
> From: Sujan Dasmahapatra <sujan.dasmahapatra at gmail.com>
> Subject: Re: [Qt-interest] Fwd: QT OpenCascade application Problem
> To: qt-interest at trolltech.com
> Message-ID:
> <b3126990911260324h585ba022u4a638e7a25c5403c at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> yes srdjan thanx now its working i am getting some errors even when i debug
> the sample opencascade.The sample after compilation is not working when i
> debug i am its crashing at this line.
> when i am creating an instantiating Graphic3d_GraphicDevice
> defaultdevice = new Graphic3d_GraphicDevice( aDisplay ); // here its
> crashing
>
> static Handle(Graphic3d_GraphicDevice) defaultdevice;
> if( defaultdevice.IsNull() )
> defaultdevice = new Graphic3d_GraphicDevice( aDisplay ); // here
> its crashing
> return new V3d_Viewer(defaultdevice,aName,aDomain,ViewSize,ViewProj,
>
> Quantity_NOC_GRAY30,V3d_ZBUFFER,V3d_GOURAUD,V3d_WAIT,
>
> ComputedMode,aDefaultComputedMode,V3d_TEX_NONE);
>
> /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> //errors
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000002a95685323 in Handle_Standard_Transient::EndScope ()
> from /share/apps/OpenCASCADE6.3.0/Linux/lib/libTKernel.so.0
>
> //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> I have included the lib as
> LIBS += -L/share/apps/OpenCASCADE6.3.0/lib -lTKernel
>
>
> Can anyone tell me whats going wrong in this ! Thanks
>
> On Thu, Nov 26, 2009 at 3:40 PM, Srdjan Todorovic <
> todorovic.s at googlemail.com> wrote:
>
> > On 26/11/2009, Sujan Dasmahapatra <sujan.dasmahapatra at gmail.com> wrote:
> > > I am writing in my *.pro file
> > > CONFIG += qt debug
> > > and while compiling its coming that compilation is on -g mode.
> > > Isnt that sufficient ?
> >
> > Yes it should be.
> > Is it also using the -g option when linking? I think maybe it needs to
> > have -g when linking but I might be wrong.
> >
> > Also if any compilation unit that you want to inspect will also need
> > to be compiled with -g option when compiling.
> >
> > Srdjan
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
>
>
>
> --
> Thanks & Regards
> S. Dasmahapatra
> B.E. (Aeronautics-Aerodynamics)
> Software programmer
> Bangalore, India
> Ph:91-9900839788
> Office:91-80-66470248
> mail id : sujan.dasmahapatra at gmail.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.trolltech.com/pipermail/qt-interest/attachments/20091126/0701ad8b/attachment.html
>
> ------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> End of Qt-interest Digest, Vol 12, Issue 240
> ********************************************
>
--
Chenf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091126/f7821a85/attachment.html
More information about the Qt-interest-old
mailing list