Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved After Promote to... header file can't be found

    General and Desktop
    2
    3
    191
    Loading More Posts
    • 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.
    • Please_Help_me_D
      Please_Help_me_D last edited by

      Hi,

      I implement QScienceSpinbox in my project: link text

      So I have QScienceSpinbox.h in folder MyPrj/GUI/other/QScienceSpinbox.h
      In Designer I add QDoubleSpinbox and promote it to QScienceSpinbox. Then in ui_myform.h (designer file) it itcludes like: #include "QScienceSpinBox.h" but this file is in MyPrj/GUI/other/QScienceSpinbox.h

      The problem:
      If I manually change from #include "QScienceSpinBox.h" to #include "/GUI/other/QScienceSpinbox.h" then I can launch my application but whenever I change this file via Designer it changes back to #include "QScienceSpinBox.h"

      ALso there is warning :
      ui_readsegyform.h:32:10: warning: non-portable path to file '"GUI/other/qsciencespinbox.h"'; specified path differs in case from file name on disk

      1 Reply Last reply Reply Quote 0
      • Christian Ehrlicher
        Christian Ehrlicher Lifetime Qt Champion last edited by

        You can specify a path when promoting the widget.

        warning: non-portable path to file '"GUI/other/qsciencespinbox.h"'; specified path differs in case from file name on disk

        As the warning tells you - the filename on the disk is not qsciencespinbox.h - but since the filesystem is case-insensitive it works for you but may not work on another OS (like .e.g Linux) - so fix the name.

        Qt has to stay free or it will die.

        Please_Help_me_D 1 Reply Last reply Reply Quote 2
        • Christian Ehrlicher
          Christian Ehrlicher Lifetime Qt Champion last edited by

          You can specify a path when promoting the widget.

          warning: non-portable path to file '"GUI/other/qsciencespinbox.h"'; specified path differs in case from file name on disk

          As the warning tells you - the filename on the disk is not qsciencespinbox.h - but since the filesystem is case-insensitive it works for you but may not work on another OS (like .e.g Linux) - so fix the name.

          Qt has to stay free or it will die.

          Please_Help_me_D 1 Reply Last reply Reply Quote 2
          • Please_Help_me_D
            Please_Help_me_D @Christian Ehrlicher last edited by

            @Christian-Ehrlicher thank oy that works

            1 Reply Last reply Reply Quote 0
            • First post
              Last post