KDE4 Porting Gotchas

Besides the big stuff of adjusting to Qt4 and a slightly difference KDE4 API for the port of Tellico to the KDE platform, I've hit a few gotchas that took me some time to figure out. These happen after everything compiles, but when something doesn't seem to work quite right. They're mentioned on the KDE4 Porting guidelines, but are easy to miss.

  • KSaveFile and KTemporaryFile must be open()'ed before you use them, and the file name itself gets cleared when you close() them. That took me a long time to track down.
  • KUrl::directory(false) will compile, but trigger a big assert, since the function signature has changed to use enum's.
  • You must call QXmlInputSource::setData before a QXmlReader uses it, even if the data is empty. This one took me a while to figure out.

I'll add to this list as I come across new ones.

Recent Entries

  • MESSENGER Looking Back

    The MESSENGER spacecraftt took that shot of the Earth and the Moon on its way to Mercury. It's hard to imagine that I'm sitting...

  • The D-Day Piper

    I just read an interesting story, an obituary of Bill Millin, who played the bagpipes during the D-Day landing in Normandy. Millin began his apparently...

  • New Tellico Version

    I put together a new version of Tellico, version 2.3, and threw it out for release this past weekend. It is dedicated to my lovely...

  • Hubble's Gotchu!

    How have I not seen this before? Jimmy Fallon has a recurring sketch by a guy who loves the Hubble Space Telescope. Bashir Salahuddin, a.k.a....

  • Now it's Plasma's turn to hog the CPU

    I just installed openSUSE 11.3. Now instead of virtuoso taking all the CPU cycles, it's plasma-desktop. Time to do so digging, I suppose it's probably...

Close