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. mainwindow.h or detwin.h doesn't see <memory> header

mainwindow.h or detwin.h doesn't see <memory> header

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 287 Views
  • 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.
  • B Offline
    B Offline
    BartoszT
    wrote on last edited by
    #1

    I have base class mainwidow and another window's class detwin.
    mainwindow.h includes <memory> header
    mainwindow.cpp includes mainwindow.h . mainwindow.cpp file sees shared_ptr
    but inside mainwindow.h and detwin.h I cant use shared_ptr

    what's going on with QT?

    mainwindow doesnt see.png

    jsulmJ 1 Reply Last reply
    0
    • B BartoszT

      I have base class mainwidow and another window's class detwin.
      mainwindow.h includes <memory> header
      mainwindow.cpp includes mainwindow.h . mainwindow.cpp file sees shared_ptr
      but inside mainwindow.h and detwin.h I cant use shared_ptr

      what's going on with QT?

      mainwindow doesnt see.png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @BartoszT This comes from code model I guess?
      Does your app build?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • F Offline
        F Offline
        foo_shepherd
        wrote on last edited by
        #3

        shared_ptr is in the namespace std.
        This should do the job

        std::shared_ptr<DaneKlasaBazowa> ptr
        
        1 Reply Last reply
        2

        • Login

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