Planet maemo

fpp

Yup, I know it’s been a long time…

2011-11-25 19:44 UTC  by  fpp
0
0

…as predicted. But this is what happens when cracks get fewer, far between and a bit tight :

Ah, the moon’s too bright
The chain’s too tight
The beast won’t go to sleep
I’ve been running through these promises to you
That I made and I could not keep
(Leonard Cohen)

 

Categories: maemo
Michael Hasselmann

Into the Wild

2011-11-23 22:00 UTC  by  Michael Hasselmann
0
0

We kicked off the new 0.81 release series together with a nice announcement: We have our own bugtracker now!

Click to read 962 more words
Categories: gnome
Robin Burchell

Avoiding graphics flicker in Qt / QML

2011-11-23 20:02 UTC  by  Robin Burchell
0
0
It's very common when writing QML applications to write a small stub, something like the following:


int main(int argc, char **argv)
{
    QApplication application(argc, argv);
    QDeclarativeView view;
    view.setSource(QUrl("qrc:/qml/main.qml"));
    view.showFullScreen();
    return a.exec();
}

What's wrong with this? It's a very subtle problem. I'll give you a moment to think about it, and a video to see if you notice the problem. Make sure you don't cheat.
(demonstrating removal of flicker in QML)
Back already? Have you figured it out? That's right, it flickers. Horrifically.
So what causes this? By default, QWidgets are drawn parent first, with parents drawing children. When a widget is drawn, first, it draws its background, then it draws the actual content. That background proves to be a problem, in this case.
If we add the following lines to the above example, the flicker goes away, and my eyes no longer want to bleed:    view.setAttribute(Qt::WA_OpaquePaintEvent);
    view.setAttribute(Qt::WA_NoSystemBackground);
    view.viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
    view.viewport()->setAttribute(Qt::WA_NoSystemBackground);

NB: I'm not completely sure that adding it to both the view, and the viewport is completely necessary, but it can't harm at least. Make sure to re-set it if you change viewports.
For completeness, here's the full, fixed example:
int main(int argc, char **argv)
{
    QApplication application(argc, argv);
    QDeclarativeView view;
    view.setSource(QUrl("qrc:/qml/main.qml"));
    view.setAttribute(Qt::WA_OpaquePaintEvent);

    view.setAttribute(Qt::WA_NoSystemBackground);
    view.viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
    view.viewport()->setAttribute(Qt::WA_NoSystemBackground);
    view.showFullScreen();
    return a.exec();
}

(If you're curious, Qt::WA_OpaquePaintEvent basically implies that you'll repaint everything as necessary yourself (which QML is well behaved with), and Qt::WA_NoSystemBackground tells Qt to nicely not paint the background.)

NB: on Harmattan (and Nemo Mobile) at least, make sure you always use QWidget::showFullScreen(). The compositor in use there unredirects fullscreen windows (meaning no compositor in the way), so you get faster drawing performance, and every frame counts.

(obligatory thanks to Daniel Stone of X and Collabora fame, for telling me to stop blaming X, and start blaming the crappy toolkits ☺)
Categories: C++
Robin Burchell

Fast UI with Qt 4 on mobile

2011-11-23 19:14 UTC  by  Robin Burchell
0
0
For device manufacturers, and those targeting device manufacturers like us in the Mer¹ and Nemo Mobile².communities, we need a performant base, and Qt's default configuration on Linux is ..not really that performant. It uses what is known as the 'native' graphics system, which uses X (and XRender) to do a lot of the grunt work. Unfortunately, XRender isn't exactly what you'd call speedy in many cases, and making loads of round trips to ask X to draw things probably doesn't help either.
Click to read 858 more words
Categories: graphics
admin

There's something different about you...

2011-11-23 18:23 UTC  by  Unknown author
0
0
Firefox for Mobile Firefox for Mobile There's something different about you... - http://madhava.com/egotism... November 23, 2011 from Planet Mozilla: Madhava Enros - Comment - Like
Murray Cumming

N9s for Openismus

2011-11-23 10:57 UTC  by  Murray Cumming
0
0

The Openismus employees who worked on the N9′s Harmattan project received their free Nokia N9 phones from the company yesterday. It was expensive but its the right thing to do.

Categories: Berlin
admin
Firefox for Mobile Firefox for Mobile Firefox for Android: Nightly Channel Switches to Native UI Builds - http://starkravingfinkle.org/blog... November 23, 2011 from Mark Finkle's Weblog » Mozilla - Comment - Like
admin
Firefox for Mobile Firefox for Mobile Firefox for Android: Using the Android Emulator - http://starkravingfinkle.org/blog... November 22, 2011 from Mark Finkle's Weblog » Mozilla - Comment - Like
morphbr

Back to life!

2011-11-21 19:08 UTC  by  morphbr
0
0

I am back from my honeymoon and I’m starting to organize my life again!

Incredible Circus

Meanwhile, we finally released a game that I’m really proud that is called “Incredible Circus”. It’s the kind of game that is really addictive :). In three weeks we achieved 200k downloads on Nokia Store and today is available for the N9. It’s also a really good showcase for Qt. If you have a Symbian^3 or MeeGo device, just follow the link to try the game.

You can also check it out on the video below.

Apart from that, I’m updating my machine and as soon as I have a developer environment again I’ll start hacking on Plasma again. Probably fixing some bugs, right Aaron? ;)

Categories: General
Harald Fernengel

Testing QtQuick 2 (Qt 5) on your n9/n950

2011-11-21 18:02 UTC  by  Harald Fernengel
0
0

Click to read 1088 more words
Categories: Embedded
Thomas Perl

Plonk (formerly known as Mong) for Harmattan

2011-11-21 15:31 UTC  by  Thomas Perl
0
0
Plonk (formerly known as Mong, but renamed since) is now available in Nokia Store for the N9 and N950 as free download:

This is a multi-touch game for two persons, so go out into the big blue room and ask somebody to have a game of Plonk with you :) As you probably already know, this game has been developed at the MeeGo Conference in collaboration with Cornelius Hald and Tim Samoff - sounds have been recorded directly at the hacker lounge by Erik Stein, and Randall Arnold came up with the new name. A real collaborative project, and the source is available from Gitorious! One challenge with Harmattan was disabling Swipe, we solved that with a nifty little class called SwipeControl - it's open source if you want to use it in your game, too :)
Categories: plonk
Andrew Flegg

MWKN Weekly News for Monday, 21 Nov 2011

2011-11-21 08:20 UTC  by  Andrew Flegg
0
0
Front Page

New MeeGo 1.2 Harmattan bug tracker for Nokia N9 and N950

Nokia has, with efforts reaching back to Summer 2010, put together a bug tracker for Harmattan: "We have now prepared a new Bugzilla instance for any Nokia N9 or N950 related bugs at harmattan-bugs.nokia.com. This will help the N9 team ineract with the community and further improve the N9 software quality. We have cloned all open N9 bugs from the old Nokia Developer Bugzilla to the new Bugzilla. If you want to follow a currently open bug, add yourself in the CC field of the bug." As Neil MacLeod points out, there are a number of problems those of us familiar with the maemo.org tracker will remember fondly, like self-signed certificates, default voting limits, and strange component selection. This new tracker is indicative of positive progress, though.

Read more (forum.meego.com)

In this edition (Download)...

  1. Front Page
    • New MeeGo 1.2 Harmattan bug tracker for Nokia N9 and N950
  2. Applications
    • Is anyone maintaining Firefox for Maemo 5?
  3. Development
    • Review of operator-name-cbs-widget for Maemo 5 CSSU inclusion
    • Qt Quick best practices: using components
  4. Devices
    • Nokia N9 default font metrics to change in future update
  5. Announcements
    • Calenderr: daily updated Calendar app icon on Harmattan
    • DateEvent - shows your calendar entries on event screen