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]using another project's header in my current project ?
Forum Update on Monday, May 27th 2025

[solved]using another project's header in my current project ?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 846 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.
  • P Offline
    P Offline
    Project try
    wrote on 6 May 2014, 20:23 last edited by
    #1

    Hello ,

    I've created a custom dialog that replaces q input dialog to do what I need , it was a project file , however when I wanted to use it now , I included the path of the project in the pro file and I get include the header + use it's function just fine , but it gives me unresolved external symbol , lnk2019 , I know that it couldn't link it , but how am I supposed to solve this ? this is one of the errors:

    @

    mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall Dialog::Dialog(class QWidget *)" (??0Dialog@@QAE@PAVQWidget@@@Z) referenced in function "private: void __thiscall MainWindow::Capture_Seconds(void)" (?Capture_Seconds@MainWindow@@AAEXXZ)

    @

    *** I've tried to use qmake and rebuild the project but it didn't work.

    • I'm using qt creator**
    1 Reply Last reply
    0
    • P Offline
      P Offline
      Project try
      wrote on 6 May 2014, 21:19 last edited by
      #2

      I managed to solve it by clicking on the project and adding existing files + don't forget the ui file.

      1 Reply Last reply
      0

      1/2

      6 May 2014, 20:23

      • Login

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