Results 1 to 5 of 5

Thread: Dialog remains in background.

  1. #1
    Join Date
    Feb 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    Unix/X11

    Exclamation Dialog remains in background.

    Hi
    I have created an application(on linux) in which i invoke the "native file dialog". On clicking the "line edit " on the file dialog a virtual keyboard is invoked. It receives the focus and i am able to enter the characters in the line edit. But the keyboard doesn't comes in the forefront. It hides behind the file dialog. I have attached the snapshot also.
    How to bring the keyboard in the forefront?
    Attached Images Attached Images

  2. #2
    Join Date
    Feb 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Dialog remains in background.

    Where are all the QT experts. I am not getting any response for last 2-3 queries i have posted here.Are these queries that strange.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Dialog remains in background.

    Quote Originally Posted by vjsharma_30 View Post
    Where are all the QT experts.
    I don't know, here you only will find Qt experts.
    I am not getting any response for last 2-3 queries i have posted here.Are these queries that strange.
    I don't know about your last queries, but this one is hard to answer since you don't give any hints on how you show the dialogs etc. And for me it's much harder since my crystal ball is under repair right now...

    Possible solutions: start the file dialog non modal and rise the keybord or make the keyboard a child of the file dialog.

  4. #4
    Join Date
    Feb 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Dialog remains in background.

    You don't have to repair your crystal ball
    I am opening the file dialog as non modal only. If i make the file dialog as the parent of the keyboard it overlaps the file dialog,means it resides in the file dialog.I tried the following
    //m_keyBoardDialog->setWindowFlags(Qt::WindowStaysOnTopHint);

    and
    //m_keyBoardDialog->raise();
    //m_keyBoardDialog->activateWindow();
    But nothing is working.

  5. #5
    Join Date
    Feb 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Dialog remains in background.

    i think i should change my status from Novice to Expert as all the experts here are not able to solve this trivial problem.
    Now i can say it is trivial as its been fixed.
    I have set the window flag for the file dialog

    m_filedialog->setWindowFlags(Qt::Window);
    So file dialog will be treated as a normal window. And any window invoked from this file dialog will open on the top of it.

Similar Threads

  1. How to blur parent dialog when child dialog is displayed
    By abhilashajha in forum Qt Programming
    Replies: 4
    Last Post: 10th June 2009, 14:01
  2. Dialog Background Color using Hand Code
    By augusbas in forum Qt Programming
    Replies: 2
    Last Post: 5th June 2009, 09:30
  3. How to dim / blur the background dialog?
    By german@it-missions.com in forum Qt Programming
    Replies: 2
    Last Post: 18th February 2009, 08:40
  4. call the other dialog through dialog
    By narumi in forum Qt Programming
    Replies: 2
    Last Post: 3rd September 2008, 10:30
  5. StatusTip remains displayed
    By emonette123 in forum Qt Programming
    Replies: 0
    Last Post: 4th April 2008, 17:32

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.