Results 1 to 3 of 3

Thread: UI compiler 4.8.5 includes my classes all lower case

  1. #1
    Join Date
    Feb 2010
    Location
    Los Angeles
    Posts
    61
    Thanks
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question UI compiler 4.8.5 includes my classes all lower case

    Hi All,

    I am trying to migrate a project from Mac to Linux (CentOS 6) and run into the following problem:
    Qt Creator (2.8.1) turns my included file names into lower case. They show up correctly in the file list but the User Interface Compiler creating the "ui_" files uses only lower case for the #include files.
    I changed already the setting under Tools-->options-->C++-->File Naming without any success.

    Any suggestion how to fix this?
    Markus

  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: UI compiler 4.8.5 includes my classes all lower case

    The files "ui_*.h" are generated files and not anything that Qt Creator has anything to do with. Qt Creator preserves the case of file names it does have something to do with perfectly well here.

    It's not clear exactly which include files you might be talking about. If you have include files specified for Promoted Widgets then uic preserves the case of the include file name you gave it in Designer. For example, this UI file excerpt:
    Qt Code:
    1. <customwidgets>
    2. <customwidget>
    3. <class>FancyPushButton</class>
    4. <extends>QPushButton</extends>
    5. <header>fancyPushButton.h</header>
    6. </customwidget>
    7. <customwidget>
    8. <class>UglyPushButton</class>
    9. <extends>QPushButton</extends>
    10. <header>Uglypushbutton.h</header>
    11. </customwidget>
    12. </customwidgets>
    To copy to clipboard, switch view to plain text mode 
    translates through uic to this C++ code:
    Qt Code:
    1. #ifndef UI_UNTITLED_H
    2. #define UI_UNTITLED_H
    3.  
    4. ...
    5. #include "Uglypushbutton.h"
    6. #include "fancyPushButton.h"
    To copy to clipboard, switch view to plain text mode 
    Notice that case is preserved.

  3. The following user says thank you to ChrisW67 for this useful post:

    Markus (9th October 2013)

  4. #3
    Join Date
    Feb 2010
    Location
    Los Angeles
    Posts
    61
    Thanks
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: UI compiler 4.8.5 includes my classes all lower case

    yes, you are right about this!
    I am using custom widgets and It does indeed show lower case in the xml of the ".ui" file.
    It newer showed up as a problem because mac file-system is not case sensitive...

Similar Threads

  1. Scrollbar for lower resolution ...
    By RJ in forum Qt Programming
    Replies: 4
    Last Post: 21st March 2013, 15:14
  2. convert upper-case to lower-case
    By RENOLD in forum Qt Programming
    Replies: 2
    Last Post: 23rd February 2012, 07:30
  3. QKeyEvent - lower case vs upper case keys?
    By ArkKup in forum Qt Programming
    Replies: 3
    Last Post: 9th January 2012, 15:58
  4. pythonqt scriptint & orting to lower version
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 0
    Last Post: 26th November 2010, 03:42
  5. Strange compiler behaviour (compiler passes wrong argument)
    By SasaVilic in forum General Programming
    Replies: 2
    Last Post: 2nd November 2010, 11: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.