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. After Promote to... header file can't be found

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

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 636 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.
  • Please_Help_me_DP Offline
    Please_Help_me_DP Offline
    Please_Help_me_D
    wrote on last edited by
    #1

    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
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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 Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Please_Help_me_DP 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        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.

        Please_Help_me_DP Offline
        Please_Help_me_DP Offline
        Please_Help_me_D
        wrote on last edited by
        #3

        @Christian-Ehrlicher thank oy that works

        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