Results 1 to 5 of 5

Thread: MainWindow in front of child modeless dialog

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2007
    Posts
    244
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    42
    Thanked 8 Times in 8 Posts

    Default MainWindow in front of child modeless dialog

    Hi,
    i have a problem managing mainwindow and dialogs; I have created a mainwindow and clicking on a button it opens a modeless dialog: here the calling function:

    Qt Code:
    1. void MainWindow::viewArticle(const QModelIndex& current)
    2. {
    3. if(!articleViewer)
    4. {
    5. articleViewer = new ArticleViewer(this);
    6. }
    7. if articleViewer {
    8. articleViewer->show();
    9. } else {
    10. articleViewer->activateWindow();
    11. }
    12. }
    To copy to clipboard, switch view to plain text mode 

    even if i can interact with mainWindow it is always behind the child dialog, which occupy a great part of the screen; should be better choosing at any time what window take in front (like in Qt Designer 4).

    Any suggestions?

    Thanks
    Last edited by jiveaxe; 10th August 2007 at 15:09.
    Giuseppe CalÃ

Similar Threads

  1. Communication between MainWindow and a dialog
    By Backslash in forum Newbie
    Replies: 9
    Last Post: 3rd August 2007, 04:27
  2. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 08:41
  3. Replies: 3
    Last Post: 23rd July 2006, 18:02

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
  •  
Qt is a trademark of The Qt Company.