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 Widget does not show up

New Widget does not show up

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 3.6k 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.
  • S Offline
    S Offline
    sos1
    wrote on last edited by
    #1

    I've set up a screen for my application some time back and was working on some other stuff. When I came back to it, I wanted to add a new label to the screen so I dragged it on to the form using the designer. However, when I run the application the label does not appear on the screen. The same is true for other widgets I've dragged onto the form, they don't appear when I run the app.

    Why can't I see the label?

    Regards,

    [using Creator 2.8.0 on Ubuntu with Qt 4.6.3]

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Buckets
      wrote on last edited by
      #2

      I had the same time of issue a while back using QT5.0.2, Where I would add a new tab to my tab widget or and action in the form designer, but the changes wouldn't appear when I would try to debug/run my application.

      I ended up opening the ui header and making all my changes there.

      It seems like there might be an issue with QT creator translating the .ui files.

      I hope this helps

      ba ba ba
      ba na na na

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sos1
        wrote on last edited by
        #3

        Thanks Buckets, I'm at least glad that someone else can see the problem!

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sos1
          wrote on last edited by
          #4

          Wait a minute!
          When I click Edit to try to edit the .ui file, it tells me "This file can only be edited in Design mode". When I click on Switch Mode, it takes me back into the Designer (which I can edit but the edits don't show up when I run/debug)!

          1 Reply Last reply
          0
          • B Offline
            B Offline
            Buckets
            wrote on last edited by
            #5

            The ui file I was altering wasn't the form_name.ui but the header contained the same project directory called ui_form_name.h this is a file QT creates when you are using the designer to create a form.

            I added the existing file to my project and ended up scraping the form_name.ui.

            ba ba ba
            ba na na na

            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