Why does the following code fail with gcc 4.3.4: QString uri...; Nepomuk::Resource res( KUrl( uri ) ); while this works: KUrl resourceUri( uri ); Nepomuk::Resource res( resourceUri ); And by "fail" I mean that gcc does not recognize res as being of type Nepomuk::Resource. I would simply like to understand this. Thanks, Sebastian