Forum
Sign Up

Two errors in QtitanRibbonInstaller5.0.0_beta2_msvc2017.exe

4 years 11 months ago #1 by jia
The first error is :
void BackstageSharedWindow::updateRequest(bool qwidgetupdate)
{
for (QSet<BackstageWidget*>::const_iterator it = m_widgets.constBegin();
it != m_widgets.constEnd(); ++it)
{
BackstageWidget* backstageWidget = *it;
QWidget* w = backstageWidget->widget();
if (w == Q_NULL)
continue;
QRegion region = backstageWidget->m_needsRepaint;

if (qwidgetupdate)
{
qtn_add_dirty_region(w, region, w->geometry().topLeft());
backstageWidget->m_needsRepaint = region;
}
else
{
QGraphicsItemPrivate* item =
QGraphicsItemPrivate::get(backstageWidget->m_proxyWidget);
if (item->dirty)
region += item->needsRepaint.toRect();
region -= backstageWidget->m_needsRepaint; //Already was painted
backstageWidget->m_needsRepaint = QRegion();

}

if (region.isEmpty())
continue;
QList<QRectF> rects;
for (QRegion::const_iterator it = rects.begin(); it != rects.end(); ++it)
rects.append(*it);
backstageWidget->changed(rects);

}
}

The second error is :
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
#define QTN_FALLTHROUGH() Q_FALLTHROUGH()
#else // (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
#define QTN_FALLTHROUGH()
#endif

Q_FALLTHROUGH() is not found.
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago #2 by jia
I got it, The QtitanRibbon 5.0 must be used with qt 5.12, and I use qt 5.7.

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago #3 by Developer Machines
To fix the compilation issue please change the macro to:
#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
#define QTN_FALLTHROUGH() Q_FALLTHROUGH()
#else // (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
#define QTN_FALLTHROUGH()
#endif

Fix will be added to the next update.

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago - 4 years 11 months ago #4 by Developer Machines
QList<QRectF> rects;
for (QRegion::const_iterator it = rects.begin(); it != rects.end(); ++it)
rects.append(*it);
backstageWidget->changed(rects);

Could you add some comments regarding this issue? What is the essence of the error?
Last edit: 4 years 11 months ago by Developer Machines.

Please Log in or Create an account to join the conversation.

More
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer Machines
Time to create page: 0.132 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.( any questions related to our products or services )
  • This email address is being protected from spambots. You need JavaScript enabled to view it.( questions related to licensing )