Results 1 to 2 of 2

Thread: Help QT checkbox and text on list

  1. #1
    Join Date
    Nov 2010
    Posts
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Help QT checkbox and text on list

    Hello everyone.

    My name is Julio Galeano and I'm getting started with QT development for mobile devices (symbian) and I'm having this problem which I hope you can help me sort out.

    I need to have a list of checkboxes, each one of them with a descrpitive text. Both, the checkbox and it's descriptive text have different asociated functions (one function for ticking the checkbox and a different one for clicking on it's descriptive text) which is why I cant use a simple widget QCheckBox. I've searched over the internet and on QT's documentation but I haven't found a way to do it. I thought I could use a QTableWidget, but I'm not so sure it'll be the best solution.

    I must add, I'm a beginner on QT develpment so I understand for some of you my question might be simple or basic. In advance, thanks for all the help you can give me.

    Julio Galeano
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Help QT checkbox and text on list

    Read the detailed description of QListWidget and QListWidgetItem.

    As far as I can tell, it has all you need out of the box.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 1
    Last Post: 23rd September 2009, 11:02
  2. Replies: 1
    Last Post: 15th January 2009, 10:34
  3. Drop down checkbox list
    By rbp in forum Qt Programming
    Replies: 2
    Last Post: 28th October 2008, 01:36
  4. Highlight text in list box
    By Sheetal in forum Qt Tools
    Replies: 7
    Last Post: 9th April 2007, 11:24
  5. Text box and list box connectivity
    By Rekha in forum Qt Programming
    Replies: 18
    Last Post: 28th July 2006, 12:46

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.