Results 1 to 3 of 3

Thread: QThread base class not being populated in Creator IDE

  1. #1
    Join Date
    Nov 2016
    Posts
    7
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Exclamation QThread base class not being populated in Creator IDE

    I've installed Qt 5.7 with Creator IDE on Windows (8.1). I'm not getting QThread option (as a base class) when I try to add a new class to a project on the Creator IDE? What could be the reason?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QThread base class not being populated in Creator IDE

    AFAIK, Qt Creator's new class wizards offer a limited selection of base classes. QThread inherits from QObject, so just choose QObject as the base class, then edit the resulting code to change the base class to QThread.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QThread base class not being populated in Creator IDE

    I think the wizard has an option for "custom base class"

    Cheers,
    _

  4. The following user says thank you to anda_skoa for this useful post:

    d_stranz (26th November 2016)

Similar Threads

  1. Creating a new c++ class with QObject as a base class
    By toufic.dbouk in forum Qt Programming
    Replies: 11
    Last Post: 30th September 2013, 23:56
  2. Replies: 3
    Last Post: 6th April 2012, 16:44
  3. Abstract base class and inherited class members
    By JovianGhost in forum General Programming
    Replies: 3
    Last Post: 19th March 2010, 12:32
  4. Replies: 3
    Last Post: 27th December 2008, 19:34
  5. Signal/slot looking in base class, not derived class
    By georgie in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2006, 07:36

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.