Results 1 to 3 of 3

Thread: Use the QTableWidget to implement a software such as the Microsoft Excel

  1. #1
    Join Date
    Jul 2013
    Posts
    9
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Use the QTableWidget to implement a software such as the Microsoft Excel

    Hi all,can we use the QTableWidget to implement a software such as the Microsoft Excel?

  2. #2
    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: Use the QTableWidget to implement a software such as the Microsoft Excel

    Yes, you can.

  3. #3
    Join Date
    Jul 2013
    Posts
    9
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Use the QTableWidget to implement a software such as the Microsoft Excel

    Year,but now I meet some questions:
    1.How to set the border's color/style/width of the specified cell?
    2.How to make the text in a cell display vertically?


    Added after 24 minutes:


    Thanks,I know that we should subclass the QStyleItemDelegate and reimplement the paint() and sizeHint() methods.Since I'm just a beginner of Qt,may you provide me a example program what can set the border's color of the specified cell?
    Last edited by ecisp.wangshuo; 19th July 2013 at 09:44.

Similar Threads

  1. Replies: 16
    Last Post: 28th April 2020, 14:40
  2. Replies: 1
    Last Post: 2nd August 2012, 10:17
  3. Replies: 2
    Last Post: 15th December 2011, 21:57
  4. Replies: 3
    Last Post: 1st February 2011, 11:57
  5. Open Microsoft excel files in QT --linux
    By qixier in forum Qt Programming
    Replies: 1
    Last Post: 2nd June 2010, 09:58

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.