Results 1 to 5 of 5

Thread: Mouse Freezes upon using QmessageBox::warning function.

  1. #1
    Join Date
    Jun 2008
    Posts
    89
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Mouse Freezes upon using QmessageBox::warning function.

    There is a widget with gives a warning message on a particular condition.
    We call parent widget as 'widget1' and warning widget as 'widget2'

    Now the Problem : when the mouse is pressed on widget1 and widget2 pops up the UI hangs(The problem is only in windows OS). Note that the mouse was not released before the widget2 comes up. Now i can not click the OK button of warning box. it is freezed.
    Mouse does not work now...i have to press 'ESC' or 'Space' from keyboard to close the dialog.

    Please help me to slove this issue.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mouse Freezes upon using QmessageBox::warning function.

    On what signal of widget 1 are u showing widget 2 ?
    if you are using pressed(), try using clicked() .

    Also is widget 2 modal dialog ?

  3. #3
    Join Date
    Jun 2008
    Posts
    89
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Mouse Freezes upon using QmessageBox::warning function.

    Signal on widget1 is clicked()
    widget2 is modal.

    Actually, there is a button on widget1 on whose click some scanning is done and at certain condition widget2(QMessageBox::warning()) is shown.

    steps:
    1. Press button on widget1.
    2. Press mouse button on title bar of widget1 and keep it pressed until widget2 is not shown
    3. When widget2 is shown ... GUI freezes... I can't click on widget2.

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mouse Freezes upon using QmessageBox::warning function.

    try using a modeless dialog for widget2.
    Obviously, ur mouse is not released when widget 2 is shown, and upon widget2 show, events wont be processed in widget 1 until widget 2 is closed

  5. #5
    Join Date
    Jun 2008
    Posts
    89
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Mouse Freezes upon using QmessageBox::warning function.

    but i also dont want events to be processed on widget1. I want the mouse to respond to widget 2

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  3. how to add static library into qmake
    By Namrata in forum Qt Tools
    Replies: 1
    Last Post: 20th November 2007, 17:33
  4. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

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.