Results 1 to 3 of 3

Thread: create a Object by its name.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default create a Object by its name.

    I have define many class,and their names are like this:
    Icon1,Icon2,Icon3,....,Icon1000;

    Now I want to know that how to create an object of them dynamicly by the digital in their names?
    For example,If I know 6,how I create the object of Icon6?
    Last edited by weixj2003ld; 10th August 2011 at 02:37. Reason: soryy

Similar Threads

  1. How do I create an Object at runtime?
    By Cayan in forum Newbie
    Replies: 2
    Last Post: 28th June 2010, 07:01
  2. Replies: 1
    Last Post: 27th February 2010, 10:33
  3. Replies: 1
    Last Post: 1st February 2010, 15:13
  4. finding dynamically create object
    By abrou in forum Newbie
    Replies: 2
    Last Post: 5th March 2008, 21:17
  5. Can't create an object : initialisation problem ?
    By Nyphel in forum Qt Programming
    Replies: 5
    Last Post: 12th March 2007, 09:07

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.