Results 1 to 11 of 11

Thread: qt3 to qt4 - uic issue

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: qt3 to qt4 - uic issue

    Well I already have a set of plugins for my custom widget set. I would like to figure out how to improve what I have to make the plugin simpler to build and install. There are other developers who work on this project and I want it to be simple to build and install the plugin(s). I have four related widgets that are all derived from the same base class (which is derived from a Qt class but with significant extensions). These widgets are highly specialized and are only useful for applications that do stuff related to creating ICC profiles.

    These are all used in my app to do similar things but with different types of external resources (profiles and CGATS files) and with slightly different user presentations depending on the context. I would like to be able to create a single plugin library that has all four widgets in it. But so far I have not been able to get this to build as a single plugin that will also make all four widgets available. But there are some widget plugin libraries that come with Qt4 that have many widgets in a single library. One example is the Qt3 compatibility widget set. So I know it is possible to do but none of the examples I have found show how to do this (IE. they only export a single widget class).

    I am sure that there is just something that I am not doing right but I do not know what that is. The basic problem is that it will not build if I have more than one Q_EXPORT_PLUGIN2 macro even if I separate the individual plugin implementations and header of the four widgets into individual files. This means that I can only have one custom widget per library file and that I must build and install each separately. What I would like is to have one project file that generates one Makefile that will correctly build and install all four widgets. Anyone have any ideas about how to do this?

    By the way I have converted my ui files to designer 4 and I am still having the problem with the generated make file not running uic or moc.

  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: qt3 to qt4 - uic issue

    Quote Originally Posted by hvengel View Post
    I would like to be able to create a single plugin library that has all four widgets in it. But so far I have not been able to get this to build as a single plugin that will also make all four widgets available.
    You need this: http://doc.trolltech.com/4.2/qdesign...interface.html

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

    Default Re: qt3 to qt4 - uic issue (solved)

    That was it thanks.

Similar Threads

  1. Replies: 5
    Last Post: 22nd September 2006, 09:04
  2. Qt 3.3.4 -> Qt 4.1.2, moc file issue
    By philski in forum Qt Tools
    Replies: 1
    Last Post: 11th September 2006, 22:08
  3. Replies: 2
    Last Post: 11th July 2006, 15:19
  4. Qt 4.1.1, no use of uic with qmake?
    By Morea in forum Newbie
    Replies: 2
    Last Post: 28th February 2006, 22:42
  5. uic not creating seperate .h and .cpp files
    By Kapil in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2006, 11:43

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.