Results 1 to 3 of 3

Thread: Can you specify a file engine?

  1. #1
    Join Date
    Jul 2008
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Can you specify a file engine?

    I have an odd little problem. I have a folder that I would like to save the contents of in a backup folder. Not a problem, there are a couple different ways to do it. Either copying the whole directory or each individual file one at a time over. Both ways work great with one exception, filenames under 8 characters are saved in all lower case. I need that file names the same as the original. toUpper and toLower will not work.

    QAbstractFileEngineHandler sounds like it would work if I could specify the file type:
    When you open a file, Qt chooses a suitable file engine by passing the file name from QFile or QDir through an internal list of registered file engine handlers. The first handler to recognize the file name is used to create the engine.
    Can you choose what file type?

    Thanks for any ideas you can throw my way!

  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: Can you specify a file engine?

    File engines are for something else. It's a dead end in this case. I suggest you find out the reason for such strange filename changes. I've never seen anything like it in Qt, maybe it's caused by the underlying filesystem?

  3. #3
    Join Date
    Jul 2008
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Can you specify a file engine?

    Thanks wysota your right, it was the file system.

Similar Threads

  1. QtHelp Module - registering compressed help file gives error
    By Ankitha Varsha in forum Qt Programming
    Replies: 1
    Last Post: 16th May 2008, 14:14
  2. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  3. file renaming on windows
    By jdd81 in forum Qt Programming
    Replies: 9
    Last Post: 2nd October 2007, 19:41
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21

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.