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. [solved] about using QSharedPointer
Forum Updated to NodeBB v4.3 + New Features

[solved] about using QSharedPointer

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

    here, I have a sense,
    @
    void RemoveSelectedContactMsg( QSharedPointerAAModule::AAParticipant node)
    @
    in AAParticipant, there is a function named getName(),

    @
    void RemoveSelectedContactMsg( QSharedPointerAAModule::AAParticipant node)
    {
    node.getName();
    }
    @

    but there is an error ,

    error C2027: 使用了未定义类型“AAModule::AAParticipant”
    error C2227: “->getName”的左边必须指向类/结构/联合/泛型类型

    where is error?

    [[moved to desktop since this is not QML related (also added [solved] while at it), Tobias]]

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stabber
      wrote on last edited by
      #2

      fixed , I have a mistake , sorry.
      @
      node.data()->getName();
      @

      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