Menu

Qt: Problem specifying "qreal"

versat
2018-03-12
2018-10-09
  • versat

    versat - 2018-03-12

    According to https://doc.qt.io/qt-5/qtglobal.html#qreal-typedef :
    qreal is a "Typedef for double unless Qt is configured with the -qreal float option."
    So i am not that happy with configuring qreal as

    <define name="qreal" value="double"/>
    

    inside qt.cfg.
    Currently it is not configured at all.

    But since qreal seems to be heavily used i want to give users the opportunity to configure it.
    Maybe via two different library files "qt_qreal_double.cfg" and "qt_qreal_float.cfg" only configuring qreal accordingly that then can then be used?
    Or is it OK to use double for qreal inside qt.cfg since this is the default?
    Any ideas/opinions on that?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.