Results 1 to 2 of 2

Thread: Really weird problem with QHttp and MacOSX

  1. #1
    Join Date
    Jun 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Really weird problem with QHttp and MacOSX

    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:
    Qt Code:
    1. QHttp *http = (QHttp*)sender();
    2. QString testing = http->readAll();
    3. ui->plainTextEdit->setPlainText(testing);QMessageBox::information( this, "test",testing.right(50) );
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jun 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Really weird problem with QHttp and MacOSX

    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)

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.