PDA

View Full Version : Really weird problem with QHttp and MacOSX



NinoUzi
24th June 2009, 20:15
I'm using QtCreator in MacOSX and working on a program which includes downloading some pages with QHttp.
I made it download page, save it on hard drive and pop-out MessageBox with content and update QTextEdit with same web page content.
1) I compiled program in 'Debug' mode in QtCreator and it works perfectly
2) If I go to project location with Finder and open application from there, it will pop-out <blank> text from web page and correctly save web page to hard drive.
3) What's even more weird, if I right-click on application from Finder -> 'Show Package Contents' and open it from there, it works again :/

This is what I'm using for msgbox:


QHttp *http = (QHttp*)sender();
QString testing = http->readAll();
ui->plainTextEdit->setPlainText(testing);QMessageBox::information( this, "test",testing.right(50) );

NinoUzi
24th June 2009, 21:19
I just checked, I have same problem with windows unless I compile it for 'Release' (No web page source shown in QTextEdit, but properly downloaded to hdd)