Results 1 to 5 of 5

Thread: Using template in constructors

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Using template in constructors

    You can't have templates in classes containing Q_OBJECT macros.

  2. #2
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    18
    Thanked 3 Times in 3 Posts

    Question Re: Using template in constructors

    OK, thanks for information.
    I'm was resolving problem writing the class for reuse the code.
    Thanks,

    Marcelo E. Geyer.

Similar Threads

  1. Replies: 2
    Last Post: 7th July 2008, 08:44
  2. specialization of a template method
    By darksaga in forum General Programming
    Replies: 3
    Last Post: 12th April 2008, 00:53
  3. qt 4.2.2 install in tru64 cxx
    By try to remember in forum Installation and Deployment
    Replies: 0
    Last Post: 30th March 2007, 07:43
  4. how to write a template function in a form..
    By nass in forum General Programming
    Replies: 7
    Last Post: 18th December 2006, 19:36
  5. problem using template
    By mickey in forum General Programming
    Replies: 6
    Last Post: 18th November 2006, 15:57

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.