Results 1 to 4 of 4

Thread: QTableView multiline problem

  1. #1
    Join Date
    Jul 2007
    Posts
    35
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTableView multiline problem

    Hi all,
    I use Qtableview in my project. Data is shown in multiline. But i don't want multiline. How can i avoid from that???Is there any method like multilineEnable(false) ???
    Thanks in advance...
    Ramazan

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableView multiline problem

    I don't understand.
    Do you mean word wrapping?

    Regards

  3. #3
    Join Date
    Jul 2007
    Posts
    35
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableView multiline problem

    Quote Originally Posted by marcel View Post
    I don't understand.
    Do you mean word wrapping?

    Regards
    I set text in table like "example1 \n example2 \n example \n".Text is show in 3 line. But i want to show only in one line and set to alignment to center ???How can I do ?

    Ramazan

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableView multiline problem

    But that is because of the "\n" I suppose.

    For alignment try QTreeWidgetItem::setTextAlignment.

    Regards

Similar Threads

  1. QTreeView problem scrolling to end.
    By seneca in forum Qt Programming
    Replies: 7
    Last Post: 22nd December 2015, 12:08
  2. QTableView refresh problem
    By tebessum in forum Qt Programming
    Replies: 3
    Last Post: 29th December 2006, 11:22
  3. Multi-line messages in QTableView
    By Conel in forum Qt Programming
    Replies: 6
    Last Post: 13th April 2006, 13:49
  4. Replies: 16
    Last Post: 7th March 2006, 15:57

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.