Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 4.8.4 QtWebKit vs qurl.h
Qt 6.11 is out! See what's new in the release blog

Qt 4.8.4 QtWebKit vs qurl.h

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Many problems including qurl.h have been previously reported in other contexts. Here's a new one. When I included QtWebKit functionality in my app, qurl.h was required, but produced these errors during project compilation:

    @/usr/include/qt4/QtCore/qurl.h:71:9: error: expected identifier before numeric constant
    /usr/include/qt4/QtCore/qurl.h:71:9: error: expected ‘}’ before numeric constant
    /usr/include/qt4/QtCore/qurl.h:71:9: error: expected unqualified-id before numeric constant
    /usr/include/qt4/QtCore/qurl.h:84:5: error: ‘FormattingOption’ was not declared in this scope
    /usr/include/qt4/QtCore/qurl.h:84:5: error: template argument 1 is invalid
    /usr/include/qt4/QtCore/qurl.h:84:5: error: invalid type in declaration before ‘;’ token
    /usr/include/qt4/QtCore/qurl.h:86:10: error: expected unqualified-id before ‘)’ token
    /usr/include/qt4/QtCore/qurl.h:90:10: error: expected unqualified-id before ‘const’
    /usr/include/qt4/QtCore/qurl.h:90:10: error: expected ‘)’ before ‘const’
    /usr/include/qt4/QtCore/qurl.h:91:10: error: expected unqualified-id before ‘const’
    /usr/include/qt4/QtCore/qurl.h:91:10: error: expected ‘)’ before ‘const’
    /usr/include/qt4/QtCore/qurl.h:93:10: error: expected unqualified-id before ‘const’
    /usr/include/qt4/QtCore/qurl.h:93:10: error: expected ‘)’ before ‘const’@

    ...and so forth.

    My workaround was to hack at qurl.h until the errors disappeared. Does anybody have a fix?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      [workaround] In enum FormattingOpt the first entry is 'None'. Changing this to 'none' (and replacing subsequent references in qurl.h) fixes the syntax error. Evidently some Qt include file leaves a hanging 'None' definition that conflicts with qurl.h.

      If #include <QUrl> is placed in the application very early, before most if not all other Qt includes, the app compiles OK.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved