[Qt-interest] setUnifiedTitleAndToolBarOnMac and Cocoa Qt cause problems

Frank Mertens frank at cyblogic.de
Wed Jul 22 20:14:22 CEST 2009


I usually keep it with just restoring the window size and letting the
window manager decide, where to place the window.

Israel Brewster wrote:
> Anyone? Anyone? Ok, so I realize this is a somewhat obscure usage case,
> but I wouldn't have though it would be so obscure as to get no response :-)
> -----------------------------------------------
> Israel Brewster
> Computer Support Technician II
> Frontier Flying Service Inc.
> 5245 Airport Industrial Rd
> Fairbanks, AK 99709
> (907) 450-7250 x293
> -----------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> 
> 
> On Jul 14, 2009, at 1:37 PM, Israel Brewster wrote:
> 
> 
> 
>> Using the setUnifiedTitleAndToolBarOnMac option with a cocoa build of
>> Qt appears to cause issues when attempting to save/restore window
>> positions. With this combination, when attempting to restore the size
>> and position of a window, the window invariably (at least on my
>> machine) appears shifted and/or resized. This is the case when using
>> any of the standard resize options, such as setGeometry(),
>> restoreGeometry() or resize() and move(). Using a carbon build all
>> methods work properly, as does the Cocoa build when not using the
>> unified title and toolbar option. Is the
>> setUnifiedTitleAndToolBarOnMac option deprecated with the cocoa build?
>> Or is this a bug? I have attached a QTest test case demonstrating
>> these issues.
>>
>> -----------------------------------------------
>> Israel Brewster
>> Computer Support Technician II
>> Frontier Flying Service Inc.
>> 5245 Airport Industrial Rd
>> Fairbanks, AK 99709
>> (907) 450-7250 x293
>> -----------------------------------------------
>> <Israel Brewster.vcf>
>> <testWindow.cpp><testWindow.h><testWindow.pro>_______________________________________________
>>
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list