Results 1 to 17 of 17

Thread: inserting QCheckBox into the Header

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: inserting QCheckBox into the Header

    Why not simply select the rows that are to be deleted using regular selection capabilities?

  2. #2
    Join Date
    Mar 2008
    Posts
    25
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: inserting QCheckBox into the Header

    selectig - using "shift" key and then delete'em some way?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: inserting QCheckBox into the Header

    Yes, shift and control.

  4. #4
    Join Date
    Mar 2008
    Posts
    25
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: inserting QCheckBox into the Header

    this program is not for every day usage, just like a calculator for students - to calculate some values. Whould it be good idea to propose standard "select-delete" capabilities instead of checkboxes?

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: inserting QCheckBox into the Header

    I don't understand what you are asking about... A regular way to select items is to use selection... So you can safely use selection for selecting

  6. #6
    Join Date
    Mar 2008
    Posts
    25
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: inserting QCheckBox into the Header

    ok, it seems I subtilize to much I will follow your sugestion to use standard selection for selecting
    thank you very much for the help.

  7. #7
    Join Date
    Dec 2007
    Location
    Austin, TX
    Posts
    43
    Thanks
    12
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: inserting QCheckBox into the Header

    If you're using it to delete rows, why not just make a column with the QTableWidgetItem having the flag Qt::ItemIsUserCheckable?

    Or if you want to delete a row at a time, connect the table's (list's) clicked() signal to a delete function? Or even have a column with a "delete" label/button/icon & only have the delete function work if the column is correct?

    Vycke

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: inserting QCheckBox into the Header

    Quote Originally Posted by vycke View Post
    If you're using it to delete rows, why not just make a column with the QTableWidgetItem having the flag Qt::ItemIsUserCheckable?
    Because that's an awful hack that comes from the world wide web where html doesn't allow you to perform real selections.

Similar Threads

  1. How to edit Horizontal Header Item in QTableWidget
    By ioannis in forum Qt Programming
    Replies: 6
    Last Post: 5th March 2013, 18:50
  2. Replies: 0
    Last Post: 10th November 2006, 13: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.