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. New Creator Problem
Qt 6.11 is out! See what's new in the release blog

New Creator Problem

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 710 Views 1 Watching
  • 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.
  • O Offline
    O Offline
    ofmrew
    wrote on last edited by
    #1

    I have added two subclasses of QWidget and promoted Widget placeholders to those classes and named them canvas and slider. However, when I try to reference them in MainWindow, namely ui->canvas. I get no member named canvas in Ui::MainWindow. I have been doing this for a long time. What gives.

    5.11 Mint Linux

    O 1 Reply Last reply
    0
    • O ofmrew

      I have added two subclasses of QWidget and promoted Widget placeholders to those classes and named them canvas and slider. However, when I try to reference them in MainWindow, namely ui->canvas. I get no member named canvas in Ui::MainWindow. I have been doing this for a long time. What gives.

      5.11 Mint Linux

      O Offline
      O Offline
      ofmrew
      wrote on last edited by
      #2

      @ofmrew I saved what I had, closed Qt and then deleted the build directory. You guessed it, it now works. This is illogical and it is silly to need to do this. I reported the problem with autocomplete for #include in the last version, it seems that it still has that and now this!

      jsulmJ 1 Reply Last reply
      0
      • O ofmrew

        @ofmrew I saved what I had, closed Qt and then deleted the build directory. You guessed it, it now works. This is illogical and it is silly to need to do this. I reported the problem with autocomplete for #include in the last version, it seems that it still has that and now this!

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

        @ofmrew Everything in ui-> is autogenereated code, you need to build first so the code gets generated.

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

        O 1 Reply Last reply
        3
        • jsulmJ jsulm

          @ofmrew Everything in ui-> is autogenereated code, you need to build first so the code gets generated.

          O Offline
          O Offline
          ofmrew
          wrote on last edited by
          #4

          @jsulm Sorry, I thought I had done that.

          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