Results 1 to 2 of 2

Thread: need a widget suggestion

  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany.
    Posts
    111
    Thanks
    29
    Thanked 3 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default need a widget suggestion

    hello all,
    I need a panel with lots of widgets in a grid. Each vertical column will have onyl one type of widget(QComboBox, or QLabel) for instance, but every column is different.
    Each row will contain several different widgets (QComboBox and QLabel and .. etc.)
    So far, no problem. But I'd like now let the user rearrange them. I.e. click-dragging on a column he/she can change the column order and dragging a row up/down repositions the row.
    Is there an 'standard' way of doing this? Do I have to control and access indices in lists of widgets and move them from their layouts and to another one? Can a QLayout of some sort help me?

    thanks for the help
    Kevin

  2. #2
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Thanked 42 Times in 37 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: need a widget suggestion

    Have you thought of using a QTable/QTableView? You can place any widgets you like in the cells of a table and it automatically has support for column and row dragging.
    Save yourself some pain. Learn C++ before learning Qt.

  3. The following user says thank you to Chicken Blood Machine for this useful post:

    TheKedge (1st September 2006)

Similar Threads

  1. Pin/Unpin Dock Widget
    By charlesD in forum Newbie
    Replies: 1
    Last Post: 21st June 2006, 06:57
  2. Replies: 4
    Last Post: 24th March 2006, 22:50
  3. Forwarding mouse events to another widget.
    By yogeshm02 in forum Qt Programming
    Replies: 8
    Last Post: 28th February 2006, 13:25
  4. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16
  5. advanced split widget
    By vitaly in forum Qt Programming
    Replies: 10
    Last Post: 24th January 2006, 20:00

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.