QTreeView ans setTabStopWidth



  • Hi. I have QTreeView ans QStandardItemModel. In model I have text with tabs ('\t). So by default tab space is 80 pixels ans I need to set it to 40 pixels. I can't find how can I do this. Can you help me?



  • Ok. I replaced it.
    text = text.replace("\t", " ");
    But maybe you need to add this feature in future - set tabstopwidth in treeview.


  • Moderators

    [quote author="dlodyakov" date="1311259483"]
    But maybe you need to add this feature in future - set tabstopwidth in treeview.[/quote]

    Feel free to add a "feature request":https://bugreports.qt.nokia.com.



  • Are you shure that qt don't have this feature?

    [quote author="mlong" date="1311259712"]
    [quote author="dlodyakov" date="1311259483"]
    But maybe you need to add this feature in future - set tabstopwidth in treeview.[/quote]

    Feel free to add a "feature request":https://bugreports.qt.nokia.com.

    [/quote]


  • Moderators

    Not that I'm aware of. (At least not in a straightfoward way that I've seen.)



  • You might want to step up and add the feature yourself, after which you can request it to be merged into Qt.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.