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. I am currently modifying a Qt Project created in one of the Qt 4.x builds meaning it has to UI file, and I cannot use the Qt Designer. How do I go abo
Forum Updated to NodeBB v4.3 + New Features

I am currently modifying a Qt Project created in one of the Qt 4.x builds meaning it has to UI file, and I cannot use the Qt Designer. How do I go abo

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 2.2k 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.
  • M Offline
    M Offline
    maplesyrup23
    wrote on last edited by
    #1

    Any resources or input would be greatly appreciated. Thank you.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      Hi, ~maplesyrup23!

      It's not depends on Qt Version. It's something wrong with your Qt Designer or Qt Creator. Try to open UI file from Qt Creator with "Open With..." action.

      P.S. It would be great you to change title and thread content (your title is longer than thread text).

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maplesyrup23
        wrote on last edited by
        #3

        Sure thing, will do. But there is no UI file! My Qt Designer and Qt Creator were reinstalled. I'll post more information shortly.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          If you don't have a UI file then your project is most likely using hand-crafted UIs. You will need to edit the code that sets them up, unfortunately there is no way to turn that code into something that designer can work with.

          But don't despair: UI setup code in Qt is pretty straight forward to understand. I recommend getting a sketchpad though to help visualize the individual components and their arrangement.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maplesyrup23
            wrote on last edited by
            #5

            Hey Tobias! Thanks for the response. How would the UI setup code be set up in Qt? What code am I looking for that crafts the UI?

            Thanks!

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              Find the main widget of your application. Usually, an instance is created in your main() function. Usually, it's constructor will have (lots of) stuff like:
              @
              m_lineEdit = new QLineEdit(this);
              layout->addWidget(m_lineEdit);
              @

              That is where the UI is constructed.

              moderator note: @ maplesyrup23, could you please edit your first post to give the post a normal title, and put the actual, complete question in the body of your message?

              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