• rss

AddiQted to 4.6

11 October 2009

note for planetkde readers: check the original article to see the video!

I confess, I’m addiQted. You obviously think it’s normal (you’re not reading this blog by accident, aren’t you?) but it wasn’t always like this: I’ve liked some previous versions, but the upcoming Qt 4.6 really rocks!

The Fotowall case

As I shown previosly, Fotowall already uses some features of Qt 4.6. How much?
Qt 4.6 is referenced in 32 places, for example in snippets like this:

    // center the path
    QPointF pathCenter = path.boundingRect().center();
    #if QT_VERSION >= 0x040600
        path.translate(-pathCenter);
    #elif QT_VERSION >= 0x040500
        path = QTransform::fromTranslate(-pathCenter.x(), -pathCenter.y()).map(path);
    #else
        QTransform tx;
        tx.translate(-pathCenter.x(), -pathCenter.y());
        path = tx.map(path);
    #endif

From simple path translations to more complex property manipulations, everything got better. See this code snipped about extending QGraphicsObject in 4.6 versus 4.5 and 4.4.

    #if QT_VERSION >= 0x040600
    class AbstractContent : public QGraphicsObject
    #else
    class AbstractContent : public QObject, public QGraphicsItem
    #endif
    {
        Q_OBJECT
    #if QT_VERSION < 0x040600
        Q_PROPERTY(QPointF pos READ pos WRITE setPos)
        Q_PROPERTY(qreal rotation READ rotation WRITE setRotation NOTIFY rotationChanged)
    #endif
    #if QT_VERSION < 0x040600 && QT_VERSION >= 0x040500
        Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
    #endif

Do you feel the pain?

I Need it

I need a world with Qt 4.6 only, because:

  • It’s too much of a pain to support older versions in the same codebase
  • It’s not even fair, because non-4.6 users won’t enjoy the program as it’s meant to be
  • I can’t use A TON of new features because they’ll either simplify too much the code, or just because they don’t have a pre-4.6 equivalent
  • and because I’d like to finally use
    • QGraphicsEffect for Fotowall’s content
    • QVector3D to say goodbye to enricomath.h
    • QGesture for multi-finger interaction
    • QPropertyAnimation to its full potential!

More 4.6 TEASING

  1. As you seem to like videos, here is a preview of something we’re working on for Amarok ;-) Qt 4.6 only!!
    YouTube Preview Image
  2. Also, since I’m soooo much a giver, see the new Fotowall’s Word Cloud feature, coming in 0.9 ;-)

See you @ Munich

I’m packing for the DevDays 2009 Munich. See you there ;-)

Categories
Computer Graphics, Software
Tags
amarok, avanguardia, creativity, graphicsview, planetkde, planetqt, qt, qtsoftware
Comments rss
Comments rss
Trackback
Trackback

« Cuteness 4.6 I’m going Multi-Touch »

8 Responses to “AddiQted to 4.6”

  1. Dario Massarin says:
    11 October 2009 at 21:08

    As always very inspiring!! :) Thank you :)

  2. sheytan says:
    11 October 2009 at 22:10

    Dude! You ROCK!

  3. d2kx says:
    11 October 2009 at 22:50

    Doesn’t KDE 4.4 require Qt 4.6? If so, your “I need it” stuff shouldn’t be too far away.

  4. Enrico Ros says:
    11 October 2009 at 23:30

    Thanks!
    @d2kx: yes, and I pushed hard for the requirement ;-) (It will come in Q1 2010 anyways..)

  5. Andrew (jamboarder) Lake says:
    12 October 2009 at 06:00

    Cool!!! oh, the qool things we can do with Qt! :-)

  6. Daniele says:
    12 October 2009 at 19:20

    beatiful! :)

  7. Kapan bisa kayak gini? « keripixlicious says:
    13 October 2009 at 10:49

    [...] asik-asik surfing, ketemu deh ma blognya eric ross, salah satu developer KDE. Nah, disalah satu artikelnya, dia menunjukkan sebuah video yang berisi tentang kegiatan ngehack [...]

  8. Ещё немного Qt 4.6 « Всё о Linux says:
    20 October 2009 at 14:15

    [...] Fotowall и один из хакеров Amarok, также делится с читателями своими восторгами. Вот, например, панель инструментов в Amarok можно [...]

Leave a Reply

Click here to cancel reply.

KDE 4.4 Countdown

Blogroll

  • Ariya Hidayat's Blog
  • Davide La Rosa
  • PlanetKDE
  • Pollycoke
  • Qt Labs
  • Yanko Design
  • Zack Rusin's Blog

Recent Posts

  • Grab one, it’s free!
  • Gift a cool idea!
  • QML to KDM! Presto!!
  • I’m going Multi-Touch
  • AddiQted to 4.6

Tags

amarok avanguardia cheating colorpicker creativity curriculum figosità fotowall graphicsview heroes kde4 life M31 multi-touch nokia open source planetkde planetqt posterazor qt qtsoftware statistics summer of code wallpaper x.org

Archives

  • January 2010 (1)
  • December 2009 (3)
  • October 2009 (1)
  • September 2009 (4)
  • August 2009 (1)
  • July 2009 (3)
  • June 2009 (3)
  • May 2009 (2)
  • April 2009 (3)
  • March 2009 (1)
  • January 2009 (2)
  • May 2008 (1)
  • April 2008 (1)
  • January 2008 (2)
  • December 2007 (1)
  • November 2007 (1)
  • September 2007 (3)
Flags
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox