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. accessing promoted widgets programmatically?
Forum Updated to NodeBB v4.3 + New Features

accessing promoted widgets programmatically?

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 885 Views 2 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    Working through another problem, I created a promoted widget in a dialog. I was expecting I could access this widget just like any other in my source code, but its name isn't recognized in the editor. Any idea what I did wrong?

    0_1534872221509_ipsource.PNG

    And I try to access it like this:
    0_1534872349663_editdialog.PNG

    Thanks...

    K 1 Reply Last reply
    0
    • mzimmersM mzimmers

      Working through another problem, I created a promoted widget in a dialog. I was expecting I could access this widget just like any other in my source code, but its name isn't recognized in the editor. Any idea what I did wrong?

      0_1534872221509_ipsource.PNG

      And I try to access it like this:
      0_1534872349663_editdialog.PNG

      Thanks...

      K Offline
      K Offline
      koahnig
      wrote on last edited by koahnig
      #2

      @mzimmers

      Try to compile it. My guess this is a typical problem when you have just introduced in designer somthing. clang modeller requires some time respectively a compilation on my machine.

      Correction/addition: possibly there seems to be something wrong with the promotion, just see the symbol left of ipSourceGroupBox.

      Vote the answer(s) that helped you to solve your issue(s)

      J.HilkJ 1 Reply Last reply
      4
      • mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #3

        Not sure what you mean by "the symbol left of ipSourceGroupBox."

        1 Reply Last reply
        0
        • K koahnig

          @mzimmers

          Try to compile it. My guess this is a typical problem when you have just introduced in designer somthing. clang modeller requires some time respectively a compilation on my machine.

          Correction/addition: possibly there seems to be something wrong with the promotion, just see the symbol left of ipSourceGroupBox.

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by J.Hilk
          #4

          @koahnig said in accessing promoted widgets programmatically?:

          Correction/addition: possibly there seems to be something wrong with the promotion, just see the symbol left of ipSourceGroupBox.

          isn‘t that just the symbol for a missing layout?

          @mzimmers
          that happens, compiling, hitting qmake, or at the very last a clean rebuild usually fixes that

          just like @koahnig said.

          that said, make sure your capitals were set correctly, during the promting process,
          usually a source of error


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          K 1 Reply Last reply
          4
          • mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on last edited by
            #5

            I think my promotion was OK, it seems to be working now. Odd. Thanks for looking.

            1 Reply Last reply
            0
            • J.HilkJ J.Hilk

              @koahnig said in accessing promoted widgets programmatically?:

              Correction/addition: possibly there seems to be something wrong with the promotion, just see the symbol left of ipSourceGroupBox.

              isn‘t that just the symbol for a missing layout?

              @mzimmers
              that happens, compiling, hitting qmake, or at the very last a clean rebuild usually fixes that

              just like @koahnig said.

              that said, make sure your capitals were set correctly, during the promting process,
              usually a source of error

              K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              @J.Hilk said in accessing promoted widgets programmatically?:

              @koahnig said in accessing promoted widgets programmatically?:

              Correction/addition: possibly there seems to be something wrong with the promotion, just see the symbol left of ipSourceGroupBox.

              isn‘t that just the symbol for a missing layout?

              Not sure, but I had at first the same impression.

              Vote the answer(s) that helped you to solve your issue(s)

              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