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

  • Babies, Babies, Babies!

    Kim and I had a bit of a surprise one morning, a couple of days after Christmas. We came downstairs to find that our fish...

  • LA Times Blog: 'Big Bang Theory' is an evolved portrayal of scientists

    Steven Paul Lieva writes in the LA Times blogs about being a fanboy of The Big Bang Theory. I'm a fanboy myself. In the face...

  • The Bilingual Ban That Worked

    I read an interesting article on bilingual education, which focused on California. "The Bilingual Ban That Worked" gives a pretty good history of the evolution...

  • Nice work if you can get it

    The Hill reports that the House of Representatives will work eight days in January and nine days in February. "The House vote schedule for 2010...

  • New Blog Theme

    I've used the same hand-crafted style for my blog almost since the beginning. I was bored this weekend, so I went looking for Movable Type...

Close