Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63688

QFlags does not cast into int anymore automatically

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.9.1, 5.9.2
    • Core: Other
    • None

      It seems that a change between 5.8 and 5.9 broke the support for casting QFlags (1) into int.

      For example value from this:
      http://doc.qt.io/qt-5/qlayoutitem.html#expandingDirections
      http://doc.qt.io/qt-5/qlayoutitem.html#alignment

      In order to support those two function calls, I had to cast now into int manually (2). I can see that there has been some work done to the QFlag (3) and I suppose that has had this side effect that the API is broken.

      (1) http://doc.qt.io/qt-5/qflags.html
      (2) https://github.com/nomovok-opensource/cutedriver-agent_qt/pull/35/commits/f8c56fa0b66a193f119e082d906c0ca9319483d5
      (3) https://github.com/qt/qtbase/commits/5.9/src/corelib/global/qflags.h

       

        1. qtbug63688.tar.bz2
          1 kB
          Juhapekka Piiroinen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            jppiiroinen Juhapekka Piiroinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes