You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

odonata

Beginner

  • "odonata" started this thread

Posts: 2

Occupation: Programmer

  • Send private message

1

Sunday, February 12th 2006, 4:20am

BadWindow Error ~ Drag-and-Drop Problem

I downloaded and compiled from source the latest version of Qt4. If I start the Qt4 Designer and try to drag a widget (like a label or a pushbutton) to a form, the drag works but not the drop. It shows the widget being dragged to the form, but when I release the mouse button, the widget disappears instead of staying on the form I'm designing. If I use the initial form wizard to create a form that already has a couple of buttons (OK/Cancel) on it, I can not use the mouse to drag these controls to a new position on the form. If I drag them to a new place, the widgets move across the form. But as soon as I release the mouse, they pop back to their original position. I can only change their position by editing their X,Y coordinates in the Property Editor.

If I open Qt4 Designer from a command prompt and then close it, nothing happens. But if I open it from a command prompt, create a new form to design and then close it, I get the following error in the terminal window I opened it from:

X Error of failed request: BadWindow (invalid window parameter)
Major opcode of failed request: 18 (X_ChangeProperty)
Resource id in failed request: 0x800194
Serial number of failed request: 256712
Current serial number in output stream: 256775

If I replicate this process on an openSUSE 10.x laptop running KDE, I don't have any problem. Googling has not given me any insight into a possible solution. I'm running Debian, X Windows and Enlightenment. Also, the built in KDevDesigner that comes with KDevelop3 works fine on this box. It's just the Qt4 Designer that isn't working correctly.

If anyone has any suggestions I'd appreciate it. Fixing this problem isn't critical since I have another Linux installation that it works fine on. This problem arose because I was trying out different Windows managers other than the usual KDE/Gnome on a spare machine. I was testing some of my favorite programs with Enlightenment and this was the only one that did not work correctly. I was trying to find a solution more out of curiosity than necessity.

odonata

Beginner

  • "odonata" started this thread

Posts: 2

Occupation: Programmer

  • Send private message

2

Tuesday, February 14th 2006, 1:51pm

Started over from the beginning and rebuilt the box. This time it worked. I must have hit the <Enter> key incorrectly the first time around.

Thanks anyway...