Qt Forum

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

    Call for Presentations - Qt World Summit

    Unsolved What is the best way to create scalable UI and write code for it?

    General and Desktop
    designer creator scalable
    5
    5
    241
    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.
    • A
      Aleksandr Novik last edited by

      I am new to Qt, and I am currently working on Qt Creator. I added several objects in Design mode, and I noticed that they generated code in ui_mainwindow.h.
      When I change positions of my elements, or their properties they don't change in code. Also, when I delete items from canvas, their representation in code doesn't get deleted, which causes many troubles.
      So I want to create a desktop application which has scalable UI, and I don't know which technologies to use. Thank you.

      Thank You 1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        Just in case:

        • did you re-run qmake after your changes ?
        • did you try to do a full rebuild ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • O
          Omicron91 last edited by

          Try to delete your build folder and build your project again. I use Qt Creator + designer and I can modify objects perfectly

          1 Reply Last reply Reply Quote 0
          • Thank You
            Thank You @Aleksandr Novik last edited by

            @Aleksandr-Novik

            Some simple questions ??
            Did you save the file before running the application?
            Is it not working after rebuilding the whole application? (as said by sGaist)

            I don't know which technologies to use.

            For me QT Design mode seems superb for static UI. If you are going for dynamic UI then coding it would be better.

            Check this one:
            https://forum.qt.io/topic/126904/is-there-difference-between-wysiwyg-editor-and-code-to-get-ui-file

            You would get some concept from this one too

            Let's make QT free or It will go forever

            TRUE AND FALSE <3

            1 Reply Last reply Reply Quote 1
            • mrjj
              mrjj Lifetime Qt Champion last edited by

              Hi

              For the scalable part.
              You must use Layouts from the very start.
              https://doc.qt.io/qt-5/layout.html

              1 Reply Last reply Reply Quote 1
              • First post
                Last post