elcuco
26th March 2006, 23:11
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:
QString s = "Images (*.png *.jpg *.jpeg *.bmp *.gif *.pnm *.xpm)";
QString s1 = QFileDialog::getOpenFileName(
NULL,
"Choose a scanned (300dpi) image",
"",
s );
if (s1.isEmpty())
return;
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?
The code which gets stucked is:
QString s = "Images (*.png *.jpg *.jpeg *.bmp *.gif *.pnm *.xpm)";
QString s1 = QFileDialog::getOpenFileName(
NULL,
"Choose a scanned (300dpi) image",
"",
s );
if (s1.isEmpty())
return;
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?