This implies changing from QPrinter::Orientation to QPageLayout::Orientation. The actual values are the same tough.