Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-27-2003, 09:02 AM   #1
Registered: Mar 2003
Location: Pennsylvania
Distribution: RedHat 7.3
Posts: 40

Rep: Reputation: 15
Always on top

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

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
//now clean up
delete painter;

The resulting setup screen when printer->setup(this) is executed is behind the parent.

Any help is greatly appreciated.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Top ? Jakeh2k1 Fedora 2 05-28-2005 07:51 PM
help with top amitbhawnani Linux - Newbie 3 03-27-2005 03:19 AM
Programs don't like "staying on top" or "always on top" -- any help? SBing Linux - Software 8 07-05-2004 05:41 AM
Top ? bohh Linux - Software 1 09-11-2003 09:57 PM
like-top eltongeoff Linux - Newbie 5 09-01-2003 06:38 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration