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. What is the best way to create scalable UI and write code for it?

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
designercreatorscalable
5 Posts 5 Posters 695 Views
  • 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 Offline
    A Offline
    Aleksandr Novik
    wrote on last edited by
    #1

    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 YouT 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • O Offline
        O Offline
        Omicron91
        wrote on last edited by
        #3

        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
        0
        • A Aleksandr Novik

          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 YouT Offline
          Thank YouT Offline
          Thank You
          wrote on last edited by
          #4

          @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
          1
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved