What is the best way to create scalable UI and write code for it?
-
wrote on 14 Aug 2021, 09:30 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. -
Hi and welcome to devnet,
Just in case:
- did you re-run qmake after your changes ?
- did you try to do a full rebuild ?
-
wrote on 14 Aug 2021, 20:52 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
-
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.wrote on 15 Aug 2021, 15:35 last edited bySome 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-fileYou would get some concept from this one too
-
Hi
For the scalable part.
You must use Layouts from the very start.
https://doc.qt.io/qt-5/layout.html
1/5