Results 1 to 2 of 2

Thread: Info passing/QWidgetFactory

  1. #1

    Default Info passing/QWidgetFactory

    I need to pass text into a custom dialog box. The only way I found to do this was to set it up using QWidgetFactory and a receiver class. After I did this I realized that since QWidgetFactory instantiates my custom dialog box from the .ui file none of my functions and slots are useable. In the QWidgetFactory page it says that if I want to use my custom slots that I, "must create a class derived from QObject, which implements all these slots."

    Can someone clue me in on how to do this and integrate it into the scheme I mentioned above or clue me into an easier way to pass information into my custom dialog from the calling function?

    Thank you for your time.

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

    Default Re: Info passing/QWidgetFactory

    There is no need to use QWidgetFactory, unless you want to load your .ui files in the runtime.

    Each .ui file represents a class. You can either use it directly, then you will have to declare some method (like setText()) using "Object Explorer" in Qt Designer and implement it in .ui.h file, or you can use the subclassing approach.

Similar Threads

  1. Is license info in binaries?
    By tgreaves in forum Installation and Deployment
    Replies: 3
    Last Post: 17th February 2009, 16:31
  2. QPersistentModelIndex usage info request
    By defumar in forum Qt Programming
    Replies: 3
    Last Post: 18th January 2008, 15:40
  3. to set date and time in the file info of two days back
    By thomasjoy in forum Qt Programming
    Replies: 1
    Last Post: 11th October 2007, 16:54
  4. Getting DragEvent target info
    By MrGarbage in forum Qt Programming
    Replies: 4
    Last Post: 22nd September 2007, 09:23
  5. Problem with SqLite and Qt
    By ad5xj in forum Newbie
    Replies: 26
    Last Post: 5th June 2007, 01:53

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.