Results 1 to 2 of 2

Thread: How can i add two lines of button to QComboBox and bind it with QTableItem?

  1. #1
    Join Date
    Apr 2011
    Posts
    15
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default How can i add two lines of button to QComboBox and bind it with QTableItem?

    Hello! I would like to put two line buttons in QComboBox(see attachment). I'm new in model-view programming.

    Now i can past buttons in line. Each lines(accept first) of QComboBox contains QButton (see atachment)

    1) Is it possible to do what i want?

    2) My QComboBox located in QTableItem. How can i bind buttons from QComboBox with line of QTable?
    Attached Images Attached Images

  2. #2
    Join Date
    Feb 2010
    Posts
    18
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How can i add two lines of button to QComboBox and bind it with QTableItem?

    1. I would place two buttons on a widget and put instances of the widget in the combo box.
    2. What do you want to achieve?

Similar Threads

  1. Bind a QComboBox to a Database
    By onefootswill in forum Newbie
    Replies: 4
    Last Post: 16th August 2008, 13:26
  2. QComboBox drop list button events
    By maird in forum Qt Programming
    Replies: 5
    Last Post: 20th October 2007, 19:25
  3. Getting palletForegroundColor of QTableItem
    By lawrence in forum Qt Programming
    Replies: 2
    Last Post: 25th April 2007, 21:10
  4. problem of subclass QTableItem
    By hesummar in forum Qt Programming
    Replies: 1
    Last Post: 4th November 2006, 09:41
  5. Problems with QTableItem
    By villy in forum Qt Programming
    Replies: 1
    Last Post: 19th August 2006, 12:19

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.