Results 1 to 9 of 9

Thread: QXListView - 'Active List' Demo

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QXListView - 'Active List' Demo

    Quote Originally Posted by fullmetalcoder View Post
    Remember the only two valids include schemes for Qt headers are suffixed lowercase and not suffixed class-like capitalized names... Mixing both may work on some platforms but not on all...
    Well actually, it's perfectly valid to mix those two schemes. If you take a look at various Qt source files you'll see that Qt itself does so. Every proper Qt installation on all supported platforms has both header file types. Non-suffixed camel cased - so called convenience header files - are there just to forward the inclusion to corresponding suffixed lower cased header files.
    J-P Nurmi

  2. #2
    Join Date
    Jan 2006
    Location
    Earth (Terra)
    Posts
    87
    Thanks
    4
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: QXListView - 'Active List' Demo

    Quote Originally Posted by jpn View Post
    Well actually, it's perfectly valid to mix those two schemes. If you take a look at various Qt source files you'll see that Qt itself does so. Every proper Qt installation on all supported platforms has both header file types. Non-suffixed camel cased - so called convenience header files - are there just to forward the inclusion to corresponding suffixed lower cased header files.
    Crawling around in the source, that's what I noticed, as well.

    Thanx,
    rickb

  3. #3
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QXListView - 'Active List' Demo

    Quote Originally Posted by jpn View Post
    Every proper Qt installation on all supported platforms has both header file types. Non-suffixed camel cased - so called convenience header files - are there just to forward the inclusion to corresponding suffixed lower cased header files.
    I've been using prebuilt packages for the last three distros I used and none of them featured mixed includes... I guess they've removed them AFTER building the bins. Better to have it working on all possible configurations anyway.
    Current Qt projects : QCodeEdit, RotiDeCode

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QXListView - 'Active List' Demo

    Quote Originally Posted by fullmetalcoder View Post
    I've been using prebuilt packages for the last three distros I used and none of them featured mixed includes... I guess they've removed them AFTER building the bins. Better to have it working on all possible configurations anyway.
    Erm, what do you actually mean with mixed includes? Both of these work on every supported platform:
    Qt Code:
    1. #include <QObject>
    2. #include <qobject.h>
    To copy to clipboard, switch view to plain text mode 
    However, due to case sensitive file systems, you cannot do something like this:
    Qt Code:
    1. #include <qobject>
    To copy to clipboard, switch view to plain text mode 

    As already stated, include <QObject> does nothing but further includes <qobject.h>. Lower case header files simply cannot be removed. Without them you have no declarations at all. And why would any distro remove convenience headers?

    What you say makes no sense to me. It would mean that it was never safe to use either include scheme.
    J-P Nurmi

  5. #5
    Join Date
    Jan 2006
    Location
    Earth (Terra)
    Posts
    87
    Thanks
    4
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: QXListView - 'Active List' Demo

    I might be doing the latter - although it builds on all three platforms in my environment. I'll check, again, but not for a bit. I'm a bit buried in the process of making a big demo for a prospective client.

    Later,
    rickb

  6. #6
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QXListView - 'Active List' Demo

    Quote Originally Posted by jpn View Post
    Erm, what do you actually mean with mixed includes?
    Well, basically this :
    Quote Originally Posted by jpn View Post
    Qt Code:
    1. #include <qobject>
    To copy to clipboard, switch view to plain text mode 
    Remember the only two valids include schemes for Qt headers are suffixed lowercase and "not suffixed" class-like-capitalized names... Mixing both may work on some platforms but not on all...
    I thought my above statement had been clear enough as to where the problem lies but I may have missed something due to my poor english skills... If so please let me know. Actually I don't think any files were removed. This was just a supposition I made after reading your previous post a bit too fast...

    Hoping it makes more sens to you now.
    Current Qt projects : QCodeEdit, RotiDeCode

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.