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. Load Qt Designer UI File

Load Qt Designer UI File

Scheduled Pinned Locked Moved Unsolved General and Desktop
csv
5 Posts 3 Posters 960 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.
  • D Offline
    D Offline
    DjGrego
    wrote on last edited by
    #1

    I would like to load a .csv into a table, but wanting to use Qt Designer UI file (such as uic.loadUi) so design will be more dynamic.

    If anyone could help me find a tutorial or example that does this, I would appreciate it.

    JonBJ 1 Reply Last reply
    0
    • D DjGrego

      I would like to load a .csv into a table, but wanting to use Qt Designer UI file (such as uic.loadUi) so design will be more dynamic.

      If anyone could help me find a tutorial or example that does this, I would appreciate it.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @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?

      D 1 Reply Last reply
      0
      • JonBJ JonB

        @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?

        D Offline
        D Offline
        DjGrego
        wrote on last edited by
        #3

        @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.

        A JonBJ 2 Replies Last reply
        0
        • D DjGrego

          @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.

          A Offline
          A Offline
          Anonymous_Banned275
          wrote on last edited by Anonymous_Banned275
          #4

          @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.

          1 Reply Last reply
          0
          • D DjGrego

            @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.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @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.

            1 Reply Last reply
            0

            • Login

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