Results 1 to 3 of 3

Thread: How to deactivate the marking in a QTable?

  1. #1
    Join Date
    Mar 2008
    Posts
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default How to deactivate the marking in a QTable?

    Hi,
    I'm using a Qt::Table with Qt3. But I'm wondering how I could deactivate the marking of cells if you click with the mouse and then throw. I already deactivated the focusstyle: table.setFocusStyle(Qt::Table::NoSelection)

    But the marking is still possible... I mean that what's blue in this screenshot:


    Any way to deactivate the ability that one can do this?

  2. #2
    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: How to deactivate the marking in a QTable?

    Qt Code:
    1. setSelectionMode(QTable::NoSelection);
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Mar 2008
    Posts
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: How to deactivate the marking in a QTable?

    Thank you very much, this works

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.