Results 1 to 14 of 14

Thread: QThread - parallel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    2

    Default Re: QThread - parallel

    OK,

    This could be because I am a noob, but...

    Qt Code:
    1. class packageWindow : public QMainWindow
    2. {
    3. Q_OBJECT
    4.  
    5. public:
    6. void processFile(const QString &myFile);
    7. };
    8.  
    9. QStringList myList;
    10. for( int i = 0; i < numFiles; i++ )
    11. {
    12. myList.append(allFiles[i]->text());
    13. }
    14. QtConcurrent::map(myList,processFile);
    To copy to clipboard, switch view to plain text mode 

    The QtConcurrent call generates an error:

    Qt Code:
    1. argument of type `void(packageWindow::)(const QString&)` does not match `void(packageWindow::*)(const QString&)`
    To copy to clipboard, switch view to plain text mode 

    What does THAT mean?
    Last edited by sgrant327; 12th April 2010 at 22:05.

Similar Threads

  1. Progress Bar set value inside OpenMP parallel for
    By lixo1 in forum Qt Programming
    Replies: 2
    Last Post: 18th February 2010, 20:51
  2. Replies: 1
    Last Post: 6th February 2010, 10:54
  3. Combining sequential and parallel animation
    By mirelon in forum Qt Programming
    Replies: 0
    Last Post: 22nd January 2010, 16:28
  4. Parallel Interface
    By r00tz in forum Qt Programming
    Replies: 31
    Last Post: 19th November 2007, 13:50
  5. Parallel and serial I/O
    By Roberto in forum Qt Programming
    Replies: 3
    Last Post: 10th October 2007, 12:53

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.