[Qt-interest] QMainWindow with QTool title bar
Israel Brewster
israel at frontierflying.com
Wed Mar 24 16:58:15 CET 2010
On Mar 24, 2010, at 12:58 AM, Andre Somers wrote:
> Israel Brewster wrote:
>> How can I make a QMainWindow that behaves like a standard window, but
>> with a QTool style title bar? That is, I want the window to be
>> non-floating, and to remain visible when the application is in the
>> background, but I want the small title bar of a QTool window. The
>> problem here is that I am trying to make a very small window, and
>> having a standard title bar is very ugly on it. Thanks.
> Try playing around with the many window flags. Perhaps Qt::Tool would do
> the trick.
Thanks for the suggestion. I tried that, but was hoping I had missed one, or some combination. Qt::Tool does the trick for appearance, but not behavior. As I said, I want the window to behave normally- no floating, remain visible in the background, have it's own menu bar, etc. Qt:Tool, unfortunately, gives me a window that floats above any other application windows, disappears in the background, and never really gets the focus, so never show its menu bar. I know I can override the disappearing when the application goes to the background behavior, but the other issues remain problematic.
So either a) I need a flag that gives me the Qt::Tool appearance but not the Qt:Tool behavior, or b) I need flags I can add to Qt::Tool to override the Qt::Tool behavior. Unfortunately, I'm not seeing either in the list of flags. Thanks again!
>
> André
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Era Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x7293
-----------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Israel Brewster.vcf
Type: text/directory
Size: 417 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100324/0f5d2f95/attachment.bin
-------------- next part --------------
More information about the Qt-interest-old
mailing list