Results 1 to 2 of 2

Thread: Qt 4.4 getOpenFileName error

  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Qt 4.4 getOpenFileName error

    Qt Code:
    1. void ZePhotoList::onBrowsePhoto()
    2. {
    3. QString filePath = QFileDialog::getOpenFileName(0,
    4. tr("Open Image"),
    5. QDir::home().path(),
    6. tr("Image Files
    7. (*.png *.jpg *.bmp)"));
    8. }
    To copy to clipboard, switch view to plain text mode 

    On wn32, when running that line I get a loop of :
    QFile::seek: IODevice is not open

    Any idea ?

  2. #2
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Re: Qt 4.4 getOpenFileName error

    Jeez that was a conflict with QMovie.
    I had to add setCacheMode(QMovie::CacheAll); to avoid this.

    Qt Code:
    1. //=============================================================================
    2. //=============================================================================
    3.  
    4. ZeAnimationWidget::ZeAnimationWidget(const QString & filePath,
    5. QWidget * parent) :
    6. QLabel(parent)
    7. {
    8. mMovie = new QMovie(filePath, QByteArray(), this);
    9.  
    10. setMovie(mMovie);
    11.  
    12. // I had to add this to avoid IO conflcts
    13. mMovie->setCacheMode(QMovie::CacheAll);
    14.  
    15. mMovie->start();
    16. }
    To copy to clipboard, switch view to plain text mode 

    Anybody knows why ?

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  3. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  4. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

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.