[Interest] Windows application's main window does not have standard Windows' main-window's features

Scott Aron Bloom scott.bloom at onshorecs.com
Mon Feb 25 17:42:18 CET 2013


On 2/24/2013 6:41 PM, Thiago Macieira wrote:
> On domingo, 24 de fevereiro de 2013 18.29.57, Suresh Govindachar wrote:
>> Hello,
>>
>> Currently, the main window of an application written in QT on and for 
>> 64 bit Windows 7 does not have the usual Windows title bar -- I mean 
>> the bar that has the "minimize (_)", "maximize ([])", and "kill (X)" 
>> icons at the right.  Also, hitting "Alt-spacebar" does not result in 
>> the Windows standard drop-down menu in the upper left (the menu with 
>> items Restore, Move. Size, Minimize, Maximize, Close). And right- or 
>> left- clicking in the upper horizontal area of the application's main 
>> window does nothing.
>>
>> I have access to the QT source code of the application.
>>
>> Question:  What needs to be modified in the code to give this 
>> application the standard Windows' main-window's feature?
> Nothing. That's the default.
>
> You must have done something to make the windows unmanaged -- without 
> title bar.
Sorry if my question was not clear:  What needs to be un-done to get back the default behavior?  (Although I have access to the source code, I did not write the application -- so I do not know what was done to get rid of the default behavior.)

----------------
Look at the window flags in the constructor of your window..
Also, confirm the type of qwidget the main window is derived from

Scott



More information about the Interest mailing list