Results 1 to 2 of 2

Thread: QListWidget inheriting custom class

  1. #1
    Join Date
    Jun 2008
    Location
    Kent, UK
    Posts
    5
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QListWidget inheriting custom class

    Hello,

    I have created a ui file that has a QListWidget on it. I am going to need to implement a drag and drop function on it and then reuse that code on another ui file. I thought about having a class myListWidget that implements the drag event and which would be inherited when I did multiple inheritance. However I am not sure how to get the QListWidget to inherit from my class as its created by the setupUi() function.

    Any thoughts or suggestions?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QListWidget inheriting custom class

    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    phannent (4th August 2008)

Similar Threads

  1. QListWidget custom numbering ?
    By pshah.mumbai in forum Newbie
    Replies: 5
    Last Post: 14th July 2008, 14:29
  2. class QHBoxLayout
    By csvivek in forum Installation and Deployment
    Replies: 2
    Last Post: 10th April 2008, 07:57
  3. custom painting in QListWidget
    By Andrew in forum Qt Programming
    Replies: 21
    Last Post: 30th March 2007, 13:16
  4. Replies: 13
    Last Post: 15th December 2006, 11:52
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Tags for this Thread

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.