Load Qt Designer UI File
-
@DjGrego
Hi and welcome.I don't understand. Qt Designer designs, and produces a
.ui
file.loadUi()
loads a.ui
file at runtime. Meanwhile, a.csv
file holds some data, which presumably you want to read and use as the data in a table, at some point.What are you actually wanting to do/asking for, and when? And what does "so design will be more dynamic" mean?
-
@JonB Thank you for replying.
I found tutorials using pyuic5 to convert the .ui to .py then enter the csv data into a table. I have also found tutorials the does not convert the ui but imports it at the time of compile. I’m looking for a tutorial or example that displays csv data into a table but uses the second form of ui import. I haven’t had luck combining what I learned from each and google isn’t helping. Thank you.
-
@DjGrego
perhaps misuse of term "ui file "?QtDesigner creates "widgets" - an graphical objects to act as GUI - graphical user interface.
Yes, they are files of specific purpose - GUI .Start with Qt examples.
Most Qt samples /examples have very basic "main window application" implementing the event "loop" and main window / form.
Remove example specific object(s) and you have basic Qt application.Of course you can start "from scratch" and use QtCreator to build "main window" too.
Either way - use QtDesigner to add GUI "list" (ui file) to your main window / form.
Then add your csv data as "item(s)" to your list.
-
@DjGrego said in Load Qt Designer UI File:
I found tutorials using pyuic5 to convert the .ui to .py then enter the csv data into a table.
This I recognise.
I have also found tutorials the does not convert the ui but imports it at the time of compile
This I do not recognise.
Please give us some links for the tutorials you found which implement what you are looking to do.