Results 1 to 4 of 4

Thread: Suggestions to qmake

  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Suggestions to qmake

    Can you guys add deprecation warning in qmake?

    For instance, if I use QWorkspace instead of QMdiArea, you can warn me that the QWorkspace is deprecated, and recommend to use QMdiArea instead.

    The reason is that I have been using QWorkspace since day 1, and never thought of it being deprecated until there is a problem. Of course I could have checked the document, but if someone is very familiar with a class, he will tend not to review the doc again and again. You never know, QMdiArea could be deprecated too in the future...

    qmake will read the files anyway, so it knows which deprecated classes are in the codes...

  2. #2
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Suggestions to qmake

    QtCentre is not affiliated with QtSoftware .
    It is a free community, that is addicted to to Qt library .

    Deprecated means "it is still working, but there is something newer".
    You don't have to stop working with deprecated classes. You are used to it so use it as long as you like. Getting used to a new class takes time. In that time you might code thousands of lines more by using the deprecated class.
    So where is the problem?
    If QtSoftware some day decides to remove QWorkspace then you can get familiar to QMdiArea.

    Microsoft implemented something similar to their C/C++ compiler.
    Whenever you use a function like strcpy() you get a warning that this function is deprecated and unsafe. The compiler advices to use strncpy() instead.
    There are many other functions MS considers unsafe and proposes an alternative.

  3. #3
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Suggestions to qmake

    Quote Originally Posted by Boron View Post
    QtCentre is not affiliated with QtSoftware .
    Really? I thought some of people here are from Trolltech?

    I don't mean deprecated classes should not be used, but if there is a newer replacement, some people may wish to know it. If there is a bug in a deprecated class, it may not get fixed timely when there is a newer version, what do you think?

  4. #4
    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: Suggestions to qmake

    Quote Originally Posted by lni View Post
    Really? I thought some of people here are from Trolltech?
    Really. If I remember well TT helped the admins to get the board up and running when the got away from QtForum and there might be some Trolls (well Noks since Trolltech no longer exists) hanging around here but that's all.

    This remarks definitely belongs to the tracker, not the forum.
    Current Qt projects : QCodeEdit, RotiDeCode

Similar Threads

  1. qmake sux a lot
    By singermornings in forum Qt Programming
    Replies: 6
    Last Post: 29th January 2009, 08:33
  2. Qt 4.3.1 & MinGW 5.1.3 & MSYS 1.0 qmake problem
    By mdecandia in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd October 2008, 16:52
  3. Mac: Copy Files Build Phase and qmake...
    By kuwan in forum Qt Programming
    Replies: 4
    Last Post: 25th September 2007, 20:59
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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.