Results 1 to 20 of 20

Thread: Sample for Mutithreading

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Sample for Mutithreading

    Quote Originally Posted by Lesiok View Post
    Changing to :
    Qt Code:
    1. QVector<*SerialThread> _serialThreads;
    To copy to clipboard, switch view to plain text mode 
    This leads to a build error: '*' cannot appear in constant expression


    This is my main handling object header:

    Qt Code:
    1. #ifndef YADLOBJECT_H
    2. #define YADLOBJECT_H
    3.  
    4. #include <QObject>
    5. #include <QVector>
    6. #include "Serial/serialthread.h"
    7. #include "Database/dbthread.h"
    8.  
    9. class YADLObject : public QObject
    10. {
    11. Q_OBJECT
    12. public:
    13. YADLObject();
    14. ~YADLObject();
    15.  
    16. private:
    17. QVector<*SerialThread> _serialThreads;
    18.  
    19. DBThread _dbThread;
    20.  
    21. public slots:
    22. void initialize();
    23. };
    24.  
    25. #endif // YADLOBJECT_H
    To copy to clipboard, switch view to plain text mode 
    Last edited by wysota; 12th June 2010 at 18:19. Reason: missing [code] tags

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 268 Times in 268 Posts
    Wiki edits
    20

    Default Re: Sample for Mutithreading

    That was a typo by Lesiok

    SerialThread*

Similar Threads

  1. UTF-8 Issues in Sample
    By trevelyan in forum Newbie
    Replies: 6
    Last Post: 19th May 2011, 02:41
  2. Problem with QSettings sample
    By neoclaw in forum Qt Programming
    Replies: 3
    Last Post: 3rd June 2010, 10:52
  3. Question regarding the flicklist qt sample
    By advokate3 in forum Qt Programming
    Replies: 0
    Last Post: 8th December 2009, 21:15
  4. mysql connection sample
    By mohanakrishnan in forum Newbie
    Replies: 3
    Last Post: 12th November 2009, 17:23
  5. Trouble building a sample (4.6)
    By Asperamanca in forum Newbie
    Replies: 12
    Last Post: 21st October 2009, 09:55

Tags for this Thread

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.