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. Qt widget promotion error after moving code and ui files.
Forum Update on Monday, May 27th 2025

Qt widget promotion error after moving code and ui files.

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 204 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.
  • A Offline
    A Offline
    abt23
    wrote on 20 Jul 2019, 03:46 last edited by
    #1

    Class DCGraphicsView is a subclass of QGraphicsView, I put a QGraphicsView Widget on the UI file framework.ui. And the I promote that QGraphicsView Widget to DCGraphicsView. After clean, qmake and rebuild, everything is OK as expected.

    But after I moved those code and ui file into a subfolder named ui, and modify the pro as well, use the same procedure as previous (clean, qmake and rebuild). An error message displayed when doing rebuild.

    To figure out what causes this error, I cancel the promotion of QGraphicsView Widget, then no error pops out. If I put it back, the same error comes again. Confused.

    error message as follows:

    No rule to make target 'dcgraphicsview.h', needed by 'ui_framework.h'.Stop.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      abt23
      wrote on 20 Jul 2019, 04:47 last edited by
      #2

      I got a solution, use UI_DIR to the ui file path in pro file.

      1 Reply Last reply
      2

      1/2

      20 Jul 2019, 03:46

      • 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