Results 1 to 7 of 7

Thread: Evaluation Example Dock Widgets Hangs Windows

  1. #1
    Join Date
    Dec 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Unhappy Evaluation Example Dock Widgets Hangs Windows

    I am in the process of evaulating Qt but was dismayed to have encountered a problem within five minutes of starting to use the sample application on Windows XP with the latest automatic updates from Microsoft.

    Our application uses MFC which sucks so bad that I am looking for a replacement. The application requires the use of dockable windows so I launched the Dock Widgets example. Here is what I did:

    1) Clicked the undock/zoom icon on the "Customers" widget.
    2) Tried to drag it

    This resulted in a loss of mouse responsiveness, like there is something capturing the mouse and not releasing it. Clicking on other applications does not work. Clicking on anything has no effect once this happens.

    Hitting Ctrl-Alt-Delete to bring up the Task Manager does fix the problem until you try to drag that customers widget again. Sometimes after hitting Ctrl-Alt-Delete when you move the mouse over the example window it acts like the mouse is down and the Customers window will follow the cursor as if you were dragging it until you click again. The same behavior results from trying to undock and drag the "Paragraphs" widget.

    Does this happen for anyone else? The previous Qt 4.1 version of the demo worked fine when I tried it about 6 months ago. I did not get this behavior.

    Is this a bug in Qt or the Example code that was not updated for 4.2? One would think that the Examples would be part of the standard regression suite.

    I'm looking for some reasonable explanation. I don't have the source to Qt so I have no way of debugging this issue myself.

    - Curtis
    Last edited by inflector; 23rd December 2006 at 22:03.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Evaluation Example Dock Widgets Hangs Windows

    I'm sure the examples work fine. They are tested before each release of Qt, so you must be experiencing some abnormal behaviour. Are you sure it is caused by Qt? Could you try the application on a different computer? Which exact version of Qt do you use? Does the Designer work correctly? It has dock windows as well, so you can easily check if they are working correct there. I know there are some issues with dock windows, but different from the ones you describe.

  3. #3
    Join Date
    Dec 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Evaluation Example Dock Widgets Hangs Windows

    I am using Qt 4.2.2 Evaluation which I just downloaded today. I previously partially evaluated Qt 4.1 and did not have this problem but that was admittedly with another machine. I am running Windows XP on a Lenovo T60p laptop.

    I cannot try the application on another computer at this time as I recently moved to Buenos Aires, Argentina and have only this laptop for the moment. I probably won't have access to another machine until after the first of the year.

    Interestingly, the Qt Designer has exactly the same problem on my machine.

    I don't see how it could be caused by anything other than Qt since I have never seen this behavior before in any other applications on this machine and every single time I try to drag on of the dockable windows I get the same exact repeatable problem.

    I am running TPOSTCW* but it doesn't have this problem with any other applications.

    I concede there could be something unusual about my machine, however, it does seem strange that mouse capturing would be broken in two different applications in a repeatable way. My machine is fairly new but not so new that there should be unkown mouse driver problems. Even if I had these it seems unlikely they would only show up while using Qt.

    I have previously worked using MFC to handle dragging and had some similar problems in my own code when I didn't implement the mouse event capturing properly so I suspect some interaction with Qt 4.2's dock windows and Windows that was not caught in QA. This does seem like the kind of thing that others would have noticed previously however.

    If you have a Windows machine running XP does this problem not happen for you?

    - Curtis


    * That Piece of Shit They Call Windows

  4. #4
    Join Date
    Dec 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Evaluation Example Dock Widgets Hangs Windows

    Funny, I just read your reply to another question and noted the reference to the but database entry there. Thinking that it was likely to be a reported bug if anyone saw this before I searched for dock and mouse and found the following:

    http://www.trolltech.com/developer/t...ntry&id=135008

    This appears to describe a cause which would give the symptoms I am seeing based on my previous experience having screwed this up myself before (repeat after me "I hate Windows"). It also seems to be a problem introduced in 4.2 which fits my experience.

    Unfortunately, I can't evaluate 4.3.

    - Curtis

  5. #5
    Join Date
    Dec 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Evaluation Example Dock Widgets Hangs Windows

    Oh, one more possibliity.

    It may be that this problem does not show up unless you are running a dual processor machine just based on the way threading works on single versus dual processor machines. This would explain why something so obvious as dragging a dockable window in the dockable window application wasn't picked up by QA.

    This is something fairly new in the Core Duo laptops like the T60p.

    It is possible that on a single processor machine there not enough processing for background applications for them to get to this state.

    - Curtis

  6. #6
    Join Date
    Dec 2006
    Posts
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Evaluation Example Dock Widgets Hangs Windows

    I had the exact same problem.
    I've got a Thinkpad R50p (single core pentium mobile 1.6GHz) with a custom Dutch Windows XP installation.

    I fixed it by reinstalling QT and rebooting after it, I don't know why it worked but it worked.

  7. #7
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Evaluation Example Dock Widgets Hangs Windows

    Quote Originally Posted by inflector View Post
    If you have a Windows machine running XP does this problem not happen for you?
    I have a Thinkpad T60, WinXP Pro, current updates, and commercial (non-eval) Qt-4.2.2, and I am not seeing this problem.

Similar Threads

  1. Dock windows in a MDI window
    By aronsson in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 10:22
  2. Dock widgets PROBLEM
    By L1L0 in forum Qt Programming
    Replies: 8
    Last Post: 7th April 2006, 18:29
  3. How to movable dock widgets?
    By becond in forum Qt Tools
    Replies: 3
    Last Post: 21st February 2006, 19:57

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.