Results 1 to 3 of 3

Thread: How to bring a dialogbox to the front?

  1. #1
    Join Date
    Jan 2006
    Location
    Shanghai, China
    Posts
    52
    Thanks
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default How to bring a dialogbox to the front?

    In Qt3

    Just like the message box does. But I cannot use it coz I must put something else in the dialog. So that the user can immediately see the dialogbox.

    I didnot find any function. I tried setFocus and raise, none of them works.
    1. Users don't have the manual, and if they did, they wouldn't read it.
    2. In fact, users can't read anything, and if they could, they wouldn't want to.

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to bring a dialogbox to the front?

    try setting the flag

    Qt::WType_TopLevel or Qt::WType_Dialog

  3. #3
    Join Date
    Jan 2006
    Location
    Shanghai, China
    Posts
    52
    Thanks
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to bring a dialogbox to the front?

    Quote Originally Posted by munna
    try setting the flag

    Qt::WType_TopLevel or Qt::WType_Dialog
    The problem is that the dialog won't be actived automatically when shown, but the message box will...
    Any solution?
    1. Users don't have the manual, and if they did, they wouldn't read it.
    2. In fact, users can't read anything, and if they could, they wouldn't want to.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.