Results 1 to 9 of 9

Thread: Designer Forms

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Designer Forms

    right the problem is on the .h file inclusion
    or check in Ui::newdevice that u named both designer and here a same name ..
    also include ui_newdevice.h and
    check whether it is available after qmake in your folder
    "Behind every great fortune lies a crime" - Balzac

  2. #2
    Join Date
    Feb 2009
    Posts
    143
    Thanks
    8

    Default Re: Designer Forms

    I have included the file

    #include "ui_coreui.h"
    #include "ui_newdevice.h"

    I am still facing the same problems.

  3. #3
    Join Date
    Feb 2009
    Posts
    143
    Thanks
    8

    Default Re: Designer Forms

    Fixed it. Some small mistake while declaring the class

    Now

    Qt Code:
    1. desktop::desktop(QWidget *parent)
    2. : QDialog(parent) ,ui(new Ui::DialogClass)
    To copy to clipboard, switch view to plain text mode 

    this is my base class. it has form 2 associated with it.

    this is the code where i want form 1 to run

    Qt Code:
    1. int desktop::serialnumberacceptance()
    2. {
    3. QDialog *dlg = new QDialog( this );
    4. newui->setupUi(dlg);
    5. dlg->exec();
    6. dlg->deleteLater();
    7. }
    To copy to clipboard, switch view to plain text mode 

    I am getting weird error now.

    A message box pops up saysing

    Runtime Error!

    Program: ..... /../../.. app.exe
    This application has requested the runtime to terminate it in a unusual way. Please contact the application support team for more information.

    It also says QList: Out of memory in the application output screen.

    How can i solve this?

Similar Threads

  1. Replies: 5
    Last Post: 7th May 2009, 14:29
  2. Threads in Designer plugins
    By hvengel in forum Qt Tools
    Replies: 2
    Last Post: 3rd January 2009, 19:19
  3. Replies: 13
    Last Post: 15th December 2006, 11:52
  4. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 13:18
  5. Replies: 2
    Last Post: 14th February 2006, 15:28

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.