Ok, this is wierd, but some application which works PERFECTLY on Linux, does not run on win32. The linux system is OpenSUSE 10 qt-rsync, and on Windows it's mingw4 on XP Qt 4.1.0 (from the released binaries).

The code which gets stucked is:

Qt Code:
  1. QString s = "Images (*.png *.jpg *.jpeg *.bmp *.gif *.pnm *.xpm)";
  2. QString s1 = QFileDialog::getOpenFileName(
  3. NULL,
  4. "Choose a scanned (300dpi) image",
  5. "",
  6. s );
  7.  
  8. if (s1.isEmpty())
  9. return;
To copy to clipboard, switch view to plain text mode 

When I choose a file in the getOpenFileName, the application gets stucked. If I cancel, it works. The same code on a save functions works. Copying the code from the save routine gets the same effect (applicatino gets stucked).

Any ideas how to debug such thing?