Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    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

    General and Desktop
    4
    6
    1721
    Loading More Posts
    • 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
      maplesyrup23 last edited by

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

      1 Reply Last reply Reply Quote 0
      • T
        tucnak last edited by

        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 Reply Quote 0
        • M
          maplesyrup23 last edited by

          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 Reply Quote 0
          • T
            tobias.hunger last edited by

            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 Reply Quote 0
            • M
              maplesyrup23 last edited by

              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 Reply Quote 0
              • A
                andre last edited by

                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 Reply Quote 0
                • First post
                  Last post