Results 1 to 9 of 9

Thread: declaring objects inside Designer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Question declaring objects inside Designer

    HI,
    I have declare in class variables (inside qtdesigner in MainForm.ui.h) Scene scene; (Scene i s a class). After I add (in implementation) include "../M/scene.h" but don't compile; the instance 'scene' is not recognized inside member of MainForm class.
    is it possible declare an instance of object inside Designer?
    Thanks

    Qt Code:
    1. ui\mainform.h(140) : error C2327: 'MainForm::Scene' : is not a type name, static, or enumerator
    2. mywidget.cpp
    3. ui\mainform.h(140) : error C2327: 'MainForm::Scene' : is not a type name, static, or enumerator
    4. mymainform.cpp
    5. ui\mainform.h(140) : error C2327: 'MainForm::Scene' : is not a type name, static, or enumerator
    6. Generating Code...
    7. NMAKE : fatal error U1077: 'cl' : return code '0x2'
    8. Stop.
    To copy to clipboard, switch view to plain text mode 
    Last edited by mickey; 11th March 2006 at 15:22.
    Regards

Similar Threads

  1. Delete objects in Designer
    By Krish_ng in forum Qt Programming
    Replies: 3
    Last Post: 7th August 2007, 10:42
  2. Replies: 4
    Last Post: 11th July 2007, 04:21

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.