Forums

OverviewFelgo 2 Support (Qt 5) › Bug when Importing QtLocation

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22210

    Ali
    #22214

    Alex
    Felgo Team

    Hi,

    the QtLocation module also has a type named Icon, thus you get a namespace conflict here. I assume you put the QtLocation import at the end, thus the Icon from QtLocation is used now, which does not have the properties displayed as error. You have 2 options:

    • Put the Felgo import as last import, to give priority to Felgo conponents in case of a namespace conflict
    • Use an import like “import QtLocation 5.5 as QtLoc” and then use any components from the module with QtLoc.MapCircle

    Cheers,
    Alex

    #22215

    Ali

    Thanks! Problem solved

    “””

    • Put the Felgo import as last import, to give priority to Felgo components in case of a namespace conflict
    • Use an import like “import QtLocation 5.5 as QtLoc” and then use any components from the module with QtLoc.MapCircle

    “””

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support