Results 1 to 6 of 6

Thread: How to change table column's width if I make headerView inVisible?

  1. #1
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    3

    Default How to change table column's width if I make headerView inVisible?



    How can we get the similar effect as the pictrue?

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to change table column's width if I make headerView inVisible?

    I don't know if there is a build in function, but you can activate mouse tracking and check if the mouse in on a line, chance the mouse cursor and react on mouse press + move.

  3. #3
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    3

    Default Re: How to change table column's width if I make headerView inVisible?

    Quote Originally Posted by Lykurg View Post
    I don't know if there is a build in function, but you can activate mouse tracking and check if the mouse in on a line, chance the mouse cursor and react on mouse press + move.
    Thanks for your reply!
    I will have a try.

  4. #4
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    3

    Default Re: How to change table column's width if I make headerView inVisible?

    I succeed.
    In fact,it is very easy.

  5. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to change table column's width if I make headerView inVisible?

    Quote Originally Posted by luoyes View Post
    I succeed.
    In fact,it is very easy.
    Perfect! It would be nice if you could post the relevant reimlementations. If some other user struggle with that problem, he could use your solution.

  6. #6
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    3

    Smile Re: How to change table column's width if I make headerView inVisible?

    Here is my code.
    Hope it is helpful!
    And I am very pleased if anyone give me some suggestions.
    MyTableWidget..cppMyTableWidget..h

Similar Threads

  1. make label of QwtPlotMarker invisible
    By rambo83 in forum Qwt
    Replies: 1
    Last Post: 26th November 2009, 12:39
  2. QTableView column header is invisible
    By grsandeep85 in forum Qt Programming
    Replies: 2
    Last Post: 20th October 2009, 12:04
  3. make background invisible
    By punit.doshi.85 in forum Qt Programming
    Replies: 1
    Last Post: 1st October 2008, 10:48
  4. Replies: 4
    Last Post: 23rd June 2008, 17:11
  5. Change column width in a QTreeWidget
    By mace in forum Qt Programming
    Replies: 2
    Last Post: 27th May 2006, 12:19

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.