Results 1 to 2 of 2

Thread: Qlist<QLabel *> in Qlist<QAction*>

  1. #1
    Join Date
    Sep 2011
    Posts
    26
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Qlist<QLabel *> in Qlist<QAction*>

    Hello,

    there are a way to cast QList<QLabel*> in QList<QAction*> ?

    I want to use the entries from the QList<QLabel*> into a Pulldown menu. and add them with addActions(...).

    Thanks for help.

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qlist<QLabel *> in Qlist<QAction*>

    no you can not.

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

    Naahmi (9th September 2011)

Similar Threads

  1. Cast QList<Foo*> to QList<const Foo*>
    By vfernandez in forum Qt Programming
    Replies: 0
    Last Post: 4th October 2010, 17:04
  2. Replies: 4
    Last Post: 20th August 2010, 14:54
  3. Copying an QList into a new, sorted QList.
    By Thomas Wrobel in forum Newbie
    Replies: 3
    Last Post: 11th January 2010, 19:27
  4. QList inside a QList
    By jano_alex_es in forum Newbie
    Replies: 2
    Last Post: 1st July 2009, 12:59
  5. QList: Out of memory - without having defined QList
    By miroslav_karpis in forum Qt Programming
    Replies: 1
    Last Post: 27th March 2009, 09:42

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.