[Development] Move math3d from QtGui to QtCore

Thiago Macieira thiago.macieira at intel.com
Thu Jul 5 17:48:20 CEST 2012


On quinta-feira, 5 de julho de 2012 16.35.52, Laszlo Papp wrote:
> > Talking about your case in specific: multimedia applications often have a
> > GUI. So using QtGui is not a big deal.  As I said, 99% of the
> > applications do use QtGui anyway, so moving the classes into QtCore does
> > not buy you much.
> Sure, mplayer, mpd and /many/ other command line based multimedia
> applications use that... With your thinking, there is almost no need
> for things like kdecore since almost any kde applications are UI
> based...

No, that's not my thinking. I said nothing of that, so please don't attribute 
those things to me.

The classes in kdecore are adding value to applications that don't create a 
GUI. I never said that they didn't. I am saying that I'm not convinced that 
those math3d classes do.

> > You haven't been able to convince me that there are many applications that
> > would use those classes but don't have any GUI,
> 
> Well, you can ignore our sayings, and you can force *everybody* to
> depend on GUI, even for command line applications. No comment from
> here, if you think this is an acceptable design for the Qt framework.
> Also, QPoint, QLine and others are so much used in command line
> applications...

I'm not ignoring. I heard your arguments and those from others and I am saying 
that I am not convinced. Unless you present new data, the decision is made.

Repeating old data will not help, unless you believe I misunderstood you. In 
that case, don't just repeat, but rephrase.

> > plus you haven't told me
> > whether the single-precision floating point internals would suffice for
> > your needs.
> 
> No any real clue what you mean...

And isn't that a problem? It means you didn't study the classes properly...

class Q_GUI_EXPORT QVector2D
{
public:
    QVector2D();
    QVector2D(qreal xpos, qreal ypos);
[...]
private:
    float xp, yp;
};

Is float enough for your needs and for the needs of those the other people 
you're trying to tell me would use this class?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120705/57099703/attachment.sig>


More information about the Development mailing list