Results 1 to 3 of 3

Thread: How can I get the date out of QFileInfo?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,329
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How can I get the date out of QFileInfo?

    Second I changed the declaration for sizeItem to:
    QTableWidgetItem *sizeItem = new QTableWidgetItem(tr("").arg(fdate.toString()));
    And didn't I tell you in reply to your last post (in the "General Discussion" section) how to properly format a QString().arg() expression?

    We aren't going to write your code for you, and you have to read and understand the answers so you can write it yourself.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    emp1953 (20th March 2020)

Similar Threads

  1. Replies: 2
    Last Post: 30th August 2019, 20:16
  2. Replies: 1
    Last Post: 5th March 2014, 00:41
  3. QFileInfo
    By ishkabible in forum Qt Programming
    Replies: 3
    Last Post: 20th September 2010, 00:08
  4. Is there such a way QFileInfo
    By baray98 in forum Qt Programming
    Replies: 9
    Last Post: 21st April 2008, 03:23
  5. How to default Date-Edit Widget to system date
    By JohnToddSr in forum Qt Tools
    Replies: 4
    Last Post: 17th January 2007, 19:18

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