Results 1 to 6 of 6

Thread: QTextList starting value

  1. #1
    Join Date
    May 2015
    Posts
    21
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default QTextList starting value

    Is there a way to set custom start value for QTextList with ListDecimal style?
    I have one scene with multiple QGraphicTextItem-s but I wish to allow numbered text list to propagate through more then one item. As QTextList take QTextDocument for parent this is not possible.
    I can do a "don't do" thing and add block from one item to list from the other but still number of first block in item is always 1.

  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: QTextList starting value

    What is a start value?

    Do you mean QTextListFormat::setNumberPrefix()?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QTextList starting value

    I think the OP wants two independent (separated) QTextLists where the numbering in the second continues from the number at the end of the first. To do this the second QTextList needs to start counting entries from a number other than one. I cannot see a way to start number from, for example, 5.

  4. #4
    Join Date
    May 2015
    Posts
    21
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QTextList starting value

    Quote Originally Posted by ChrisW67 View Post
    I think the OP wants two independent (separated) QTextLists where the numbering in the second continues from the number at the end of the first. To do this the second QTextList needs to start counting entries from a number other than one. I cannot see a way to start number from, for example, 5.
    Yes. This is exatly what I am talking about. This functionality seams to be something that should be standard for me.

  5. #5
    Join Date
    May 2015
    Posts
    21
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QTextList starting value

    I hope that this functionality shall be added in class in next release. It is a trivial functionality for adding in Qt private class and a pain in the .... for implementing from scratch when needed.

  6. #6
    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: QTextList starting value

    Quote Originally Posted by 'milimoj View Post
    I hope that this functionality shall be added in class in next release. It is a trivial functionality for adding in Qt private class and a pain in the .... for implementing from scratch when needed.
    Feel free to add it to the code and send it to review. With decent enough code it should quickly be accepted.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTextList constructor question
    By 'milimoj in forum Qt Programming
    Replies: 13
    Last Post: 1st June 2015, 10:22
  2. QTextList signals and slots
    By 'milimoj in forum Qt Programming
    Replies: 3
    Last Post: 25th May 2015, 16:43
  3. Inserting QTextList into QTextDocument
    By ToddAtWSU in forum Qt Programming
    Replies: 0
    Last Post: 20th September 2013, 15:55
  4. Starting all over
    By KillGabio in forum Newbie
    Replies: 4
    Last Post: 17th January 2013, 15:34
  5. Starting with QML
    By MTK358 in forum Newbie
    Replies: 5
    Last Post: 3rd October 2010, 14:36

Tags for this Thread

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.