Hi,
Qt originally being developed for desktop use, I'm not sure if the current API provides support for such a thing at all. Hopefully someone will correct me if I'm wrong here.
There is an example application in the Wiki which shows a workaround:
http://wiki.forum.nokia.com/index.ph...ower_of_S60_Qt
Here's a piece of code from its main.cpp:
// lock orientation
CAknAppUi* appUi = dynamic_cast<CAknAppUi*>(CEikonEnv::Static()->AppUi());
if(appUi){
appUi->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait);
}
I haven't actually tried whether that works as expected, but I guess it's worth a try

Perhaps this kind of functionality will be made available in a proper way in the Mobile Extensions package one day...
Cheers,
- Petri