`no_qgoodwindow` flag: `'return': cannot convert 'int' to 'QFlags<Qt::AlignmentFlag>'`
Closed this issue · 2 comments
kresimirko commented
Hello again. Here's another issue I've encountered while trying out the no_qgoodwindow
flag:
[...]\QGoodWindow-master\QGoodWindow\QGoodCentralWidget\src\qgoodcentralwidget.cpp:435: error: C2440: 'return': cannot convert from 'int' to 'QFlags<Qt::AlignmentFlag>'
..\..\QGoodCentralWidget\src\qgoodcentralwidget.cpp(435): error C2440: 'return': cannot convert from 'int' to 'QFlags<Qt::AlignmentFlag>'
..\..\QGoodCentralWidget\src\qgoodcentralwidget.cpp(435): note: No constructor could take the source type, or constructor overload resolution was ambiguous
Occurs here at line 435:
QGoodWindow/QGoodWindow/QGoodCentralWidget/src/qgoodcentralwidget.cpp
Lines 430 to 437 in d0a17a6
Encountered while trying to build GoodShowCase & GoodPlayground. I didn't try this out on the other examples.
antonypro commented
@kresimirko: This problem is solved by replacing 0
with Qt::Alignment(0)
.
The next version of the library will contain the fix.
Thanks for reporting!
antonypro commented
@kresimirko: This bug was solved on version 2.3.