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. The question about the second argument of Q_DECLARE_INTERFACE ( ClassName, Identifier )
Forum Updated to NodeBB v4.3 + New Features

The question about the second argument of Q_DECLARE_INTERFACE ( ClassName, Identifier )

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.5k 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.
  • N Offline
    N Offline
    nimingzhe2008
    wrote on last edited by
    #1

    The document said Q_DECLARE_INTERFACE ( ClassName, Identifier ) 's second argument must be unique. The code
    @Q_DECLARE_INTERFACE( FilterInterface, "se.thelins.CustomPlugin.FilterInterface/0.1" )@ in my book's example project works well,but if I change the code to
    @Q_DECLARE_INTERFACE( FilterInterface, "numberOne" )@,my application will get no plugins.I think "numberOne" is also unique.Why it doesn't work?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      Did you rebuild your project afterwards?

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nimingzhe2008
        wrote on last edited by
        #3

        [quote author="Lukas Geyer" date="1353570049"]Did you rebuild your project afterwards?[/quote]

        Sure

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nimingzhe2008
          wrote on last edited by
          #4

          I find that even if I change a word of "se.thelins.CustomPlugin.FilterInterface/0.1",the plugins will be loaded unsuccessffully.

          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