Results 1 to 2 of 2

Thread: Making a QDropBox show a list contents

  1. #1
    Join Date
    Mar 2011
    Posts
    82
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Making a QDropBox show a list contents

    Hello,


    I'm trying to understand events and such.

    I have a dialog window and a QGroupBox. I added a QDropBox to the QGroupBox and now I want to, onClick, display a QList's content.

    That is, I have a QList<Colours> * colorList; with 10 colours in it. I want, on Click over the DropBox, to show all those colours and be able to select one from that displayed list. (When you use an installer and you select the language, that the box rolls back and the chosen option (language) only is shown? That's what I want to do)

    The thing is, I have no idea where (how) to begin. I can't find an online guide to events or something like that. I'm guessing I will need something like an OnMouseClickOnMyDropBox function that works as an event, but no Idea who should give the call to that event, how, etc.

    I don't know if I'm clear on this, I understand what I need, but I don't really know how to resolve this "events" issue.

    Thanks for your help.

  2. #2
    Join Date
    Mar 2011
    Posts
    82
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Making a QDropBox show a list contents

    Erratum;

    Where it says "QDropBox", please read "QComboBox". I was burnt out and was confusing QT with another framework. I can't seem to edit my original post, so I will just clarify it here.

Similar Threads

  1. Replies: 2
    Last Post: 24th April 2011, 07:52
  2. Replies: 1
    Last Post: 23rd April 2011, 17:33
  3. Replies: 0
    Last Post: 15th April 2010, 07:42
  4. QAbstractItemView - Show all contents all the time...
    By youkai in forum Qt Programming
    Replies: 5
    Last Post: 31st August 2008, 16:54
  5. Replies: 3
    Last Post: 30th May 2008, 07:37

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.