Results 1 to 2 of 2

Thread: add a derived class to a qtdesigner project

  1. #1
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default add a derived class to a qtdesigner project

    Hi to all, I'm developing a track list (audio track) using designer. It's derived from QDialog that I'll execute from my main app.
    I have some problems with drag and drop. In the project I added a QListWidget object to show the list of the tracks.
    I would drag and drop from the dialog to my application. I think I should derive a class from QListWidget ( as in the puzzle example )?
    But then I'm unable to add it to the ui file in the designer.
    How can I do it?

    Regards,
    Franco
    Franco Amato

  2. #2
    Join Date
    Nov 2009
    Posts
    129
    Thanks
    4
    Thanked 29 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: add a derived class to a qtdesigner project

    Quote Originally Posted by franco.amato View Post
    I think I should derive a class from QListWidget ( as in the puzzle example )?
    But then I'm unable to add it to the ui file in the designer.
    How can I do it?
    Using Custom Widgets with Qt Designer explains how to promote a widget to a subclass in Qt Designer.

Similar Threads

  1. Can not cast into the derived class from QScrollBar
    By learning_qt in forum Qt Programming
    Replies: 2
    Last Post: 19th December 2008, 10:23
  2. no frame on Qlabel derived class
    By tupu_83 in forum Qt Programming
    Replies: 2
    Last Post: 19th November 2008, 16:01
  3. Use QWidget derived class in Dialog
    By qtneuling in forum Qt Tools
    Replies: 2
    Last Post: 17th May 2008, 23:29
  4. rtti() of derived class
    By quickNitin in forum Newbie
    Replies: 4
    Last Post: 8th October 2006, 14:20
  5. Signal/slot looking in base class, not derived class
    By georgie in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2006, 07:36

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.