Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, September 2007
QDialog behavior changed


Message 1 in thread

Hi list. I have a QDialog in my application. It gets created using  
these flags:

QDialog(NULL, Qt::Dialog | Qt::WindowTitleHint |  
Qt::WindowSystemMenuHint)

The issue I'm having is that I recently moved from Qt 4.2.3 to Qt  
4.3.1 on MacOS X. The old behavior was that this dialog box had a  
title bar and used my main application's menu bar. After the  
migration, the dialog box does not seem to have a title bar and  
doesn't use the main application's menu bar.

I'm trying to figure out what changed and somehow get it to have the  
previous behavior.

Brant Sears

--
 [ signature omitted ] 

Message 2 in thread

I didn't notice any change, but I pass the QMainWindow as the parent.

Keith
**Please do not reply to me, reply to the list.**

On 09-10-2007 11:54 AM, "Brant Sears" wrote:

> Hi list. I have a QDialog in my application. It gets created using
> these flags:
> 
> QDialog(NULL, Qt::Dialog | Qt::WindowTitleHint |
> Qt::WindowSystemMenuHint)
> 
> The issue I'm having is that I recently moved from Qt 4.2.3 to Qt
> 4.3.1 on MacOS X. The old behavior was that this dialog box had a
> title bar and used my main application's menu bar. After the
> migration, the dialog box does not seem to have a title bar and
> doesn't use the main application's menu bar.
> 
> I'm trying to figure out what changed and somehow get it to have the
> previous behavior.
> 
> Brant Sears


--
 [ signature omitted ] 

Message 3 in thread

OK. I did try changing the parent from NULL to be the window of my  
main dialog. This causes it to have the correct Menu Bar, but the  
secondary QDialog still does not have a title bar.

Thanks for the suggestion. I guess I'll have to start digging into  
this in more detail since it is not something people are saying they  
commonly encounter.


On Sep 10, 2007, at 2:29 PM, Keith Esau wrote:

> I didn't notice any change, but I pass the QMainWindow as the parent.
>
> Keith
> **Please do not reply to me, reply to the list.**
>
> On 09-10-2007 11:54 AM, "Brant Sears" wrote:
>
>> Hi list. I have a QDialog in my application. It gets created using
>> these flags:
>>
>> QDialog(NULL, Qt::Dialog | Qt::WindowTitleHint |
>> Qt::WindowSystemMenuHint)
>>
>> The issue I'm having is that I recently moved from Qt 4.2.3 to Qt
>> 4.3.1 on MacOS X. The old behavior was that this dialog box had a
>> title bar and used my main application's menu bar. After the
>> migration, the dialog box does not seem to have a title bar and
>> doesn't use the main application's menu bar.
>>
>> I'm trying to figure out what changed and somehow get it to have the
>> previous behavior.
>>
>> Brant Sears
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>

--
 [ signature omitted ]