Results 1 to 2 of 2

Thread: error: QMimeSource: No such file or directory

  1. #1
    Join Date
    Aug 2013
    Posts
    7
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default error: QMimeSource: No such file or directory

    Hi everyone,

    I'm trying to transit an Qt application from qt 4.x to qt 5, and encountered a problem:

    error: QMimeSource: No such file or directory

    Qt Code:
    1. bool QMimeSource::provides(const char* mimeType) const
    2. {
    3. const char* fmt;
    4. for (int i=0; (fmt = format(i)); i++) {
    5. if (!qstricmp(mimeType,fmt))
    6. return true;
    7. }
    8. return false;
    9. }
    To copy to clipboard, switch view to plain text mode 

    I search the problem in the Internet, someone says replace QMimeSource with QMimeData, but it doesn't work!

    Do you have any suggestion? Thanks in advance!

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: error: QMimeSource: No such file or directory

    QMimeData has existed for quite some time (before Qt5) and its use is described in the Drag and drop docs.

    If you want more help you will need to define "it" and "doesn't work".

  3. The following user says thank you to ChrisW67 for this useful post:

    seauniv (22nd August 2013)

Similar Threads

  1. QLocalSocket error: no such file or directory
    By foreball in forum Qt Programming
    Replies: 2
    Last Post: 17th May 2013, 13:17
  2. error: QSqlDatabase: No such file or directory
    By learningqt in forum Newbie
    Replies: 3
    Last Post: 15th February 2012, 10:00
  3. qstring.h no such file or directory error!
    By wenn32 in forum Newbie
    Replies: 14
    Last Post: 5th May 2011, 15:59
  4. Replies: 4
    Last Post: 9th May 2010, 16:18

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
  •  
Qt is a trademark of The Qt Company.