Results 1 to 5 of 5

Thread: port qt3 app to desinger 4 ui files

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Posts
    74
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1

    Default Re: port qt3 app to desinger 4 ui files

    Sorry that is basically what I had tried before. I tried it again to make sure. The compiler gives me an error message that points at the end of

    class MyDialog : public QDialog, public Ui::MyDialogBase

    in mydialog,h and says :

    mydialg.h:2: error: expected class-name before '{' token

    There could be something else wrong since I can not get the makefile generated by qmake to run uic or moc and I have been doing this by hand (what a pain the the rear). But I was able to get the app to build and run using uic3 before I converted the ui files.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: port qt3 app to desinger 4 ui files

    Try #include "ui_mydialogbase.h" (if your .ui file is called mydialogbase.ui). Make sure you re-run qmake.

  3. #3
    Join Date
    Mar 2006
    Posts
    74
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1

    Default Re: port qt3 app to desinger 4 ui files

    OK I was having problems with make not running uic and creating the ui header files. After updating all of the header to say things like

    #include <ui_mydialogbase.h>

    make started creating the ui header files. At that point for the most part this is now working. I do have two of the dialog implementations that are still giving me problems with the setupUI(this) statement. It compiles about 'setupUI' was not declared in this scope. If I comment this line out of both of the dialog implementations it will build and run. Of course none of the signals/slots work and there is lots of functionality that is broken because of that. I know that the setUI(this) line has to be there I just need to figure out why I am getting the compiler errors on two out of seven of these. I can't see why these two are different but it is late and I am tired so I will take a fresh look at it tomorrow.

    Thanks for your help I have gotten much farther along and I think I can get the port at least mostly working in the next few days.

Similar Threads

  1. Replies: 5
    Last Post: 22nd September 2006, 08:04
  2. UTF-16 files
    By jcr in forum Qt Programming
    Replies: 3
    Last Post: 7th September 2006, 12:43
  3. Replies: 16
    Last Post: 7th March 2006, 15:57
  4. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28
  5. Visual Studio 2003 and .vcproj files
    By mbjerkne in forum General Discussion
    Replies: 2
    Last Post: 1st February 2006, 00:51

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.