Results 1 to 10 of 10

Thread: Creating Column numbering like in Excecl i.e. A...Z then AA ... ZZ and so forth

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Oct 2009
    Location
    Mexico
    Posts
    81
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    6
    Thanked 10 Times in 10 Posts

    Default Re: Creating Column numbering like in Excecl i.e. A...Z then AA ... ZZ and so forth

    a better way using Qt using ASCII caracters.


    QString getLabelFromInt(int number)
    {
    return QString::number(number,36);
    }

    using base 36 to convert a number to string, include the number 0-9 and a-z caracters



    y try to find a more compact, but i think is not possible
    Last edited by ecanela; 14th December 2009 at 16:23. Reason: updated contents

Similar Threads

  1. Replies: 0
    Last Post: 10th November 2006, 13:46
  2. hidden QListView column suddenly visible
    By edb in forum Qt Programming
    Replies: 10
    Last Post: 27th January 2006, 08:00

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
  •  
Qt is a trademark of The Qt Company.