Always on top
Hello,
I am running RedHat 7.3, and I am developing with QT. I have an application which requires multi-level GUI screens with each screen's always on top attribute turned on. The application also has a picture capture (or screen capture) function. This function also includes a print picture function. My problem is that when printer setup() is called, the setup screen is behind the parent screen. I can find no way to set the setup screen's always on top attribute so the user can see it. Can anyone help me with this problem? Following is a short cut and paste from the function:
void DispBox::PrintPicture()
{
QPrinter* printer = new QPrinter; //instantiate the printer object
bool result;
//setup the printer
printer->setFullPage(true);
printer->setOrientation(QPrinter::Landscape);
printer->setPageSize(QPrinter::Letter);
printer->setOutputToFile(false);
printer->setResolution(61);
result = printer->setup(this);
if (result)
{
QPainter* painter = new QPainter(printer); //instantiate the painter object
QPixmap Window;
QPoint point = QPoint(0,0);
Window.load(localTempString); //load required image
painter->drawPixmap(point, Window); //put the picture on the screen to the printer
painter->end();
//now clean up
delete painter;
}
The resulting setup screen when printer->setup(this) is executed is behind the parent.
Any help is greatly appreciated.
Regards,
Bill
|