Results 1 to 10 of 10

Thread: Qt::Tool

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt::Tool

    As soon as I setWindowFlags(Qt::Tool) strange things start happening.

    The window does not get keyboard focus on startup.
    When closing with the X in the upper right corder, the process is not terminated (but it does when called via slot aApp quit().
    Also closeEvent(QCloseEvent *event) does not get called.

    It does this with an otherwise empty test project.

    There's a Qt example program windowflags, but this one gets terminated when choosing a Tool window.
    What could this be?

    P.s. I'm using qdevelop, great tool, and the project is in debug mode.

    [edit] I think a window with Qt::Tool flag cannot be a normal mainwindow. It is a qwidget in the windowflags example, not a qmainwindow.
    Last edited by JeanC; 5th February 2008 at 19:32.

Similar Threads

  1. Replies: 5
    Last Post: 4th August 2006, 23:44

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.