Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Syntax - passing "x.ui" file to uic ?
Qt 6.12 LTS is out! See what's new in the release blog

Syntax - passing "x.ui" file to uic ?

Scheduled Pinned Locked Moved Unsolved Qt for Python
16 Posts 5 Posters 5.8k Views 3 Watching
  • 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 Anonymous_Banned275

    @AnneRanch ....and here is the solution

    3b5f0b7d-4122-4cf3-bc9a-36ca02c68aa9-image.png

    the "final " command :

    "qt5-tools uic $FileName$"

    TODO
    find out about all these $xxx$ symbols.

    AND
    find out how it "converts" ui to C++

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

    @AnneRanch OK, here I go trying to actually run qt5....and getting this error.

    I could post this on python subforum since this same error has been around....
    I am not interested whose tool problem , but it appears as a version issue of unknown tool.

    I cannot decode the error - so I am asking for anybody who can to help me to get some idea to find where is the problem .

    Please refrain from recommending other forum - I need solution , not referrals.

    Running uic on valid test file :

    /home/nov25-1/.local/bin/qt5-tools uic A.ui
    /home/nov25-1/.local/lib/python3.10/site-packages/qt5_applications/Qt/bin/uic: symbol lookup error: /home/nov25-1/.local/lib/python3.10/site-packages/qt5_applications/Qt/bin/uic: undefined symbol: _ZdlPvm, version Qt_5

    Process finished with exit code 0

    A 1 Reply Last reply
    0
    • A Anonymous_Banned275

      @AnneRanch OK, here I go trying to actually run qt5....and getting this error.

      I could post this on python subforum since this same error has been around....
      I am not interested whose tool problem , but it appears as a version issue of unknown tool.

      I cannot decode the error - so I am asking for anybody who can to help me to get some idea to find where is the problem .

      Please refrain from recommending other forum - I need solution , not referrals.

      Running uic on valid test file :

      /home/nov25-1/.local/bin/qt5-tools uic A.ui
      /home/nov25-1/.local/lib/python3.10/site-packages/qt5_applications/Qt/bin/uic: symbol lookup error: /home/nov25-1/.local/lib/python3.10/site-packages/qt5_applications/Qt/bin/uic: undefined symbol: _ZdlPvm, version Qt_5

      Process finished with exit code 0

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

      @AnneRanch ...and there is more
      uic converts file ( ui ) to C++ , however, after more research it looks as it can be converted to .py file (why ?) with this "command "

      qt5-tools uic $FileName$ -o $FileNameWithoutAllExtensions$.

      These "$ text $" are PyCharm IDE macros !! ( No PyCharm documentation found so far )

      JonBJ S 2 Replies Last reply
      0
      • A Anonymous_Banned275

        @AnneRanch ...and there is more
        uic converts file ( ui ) to C++ , however, after more research it looks as it can be converted to .py file (why ?) with this "command "

        qt5-tools uic $FileName$ -o $FileNameWithoutAllExtensions$.

        These "$ text $" are PyCharm IDE macros !! ( No PyCharm documentation found so far )

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

        @AnneRanch said in Syntax - passing "x.ui" file to uic ?:

        These "$ text $" are PyCharm IDE macros !! ( No PyCharm documentation found so far )

        If you read my reply earlier I supplied you with precisely the documentation link for these.

        S 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
        • A Anonymous_Banned275

          @AnneRanch ...and there is more
          uic converts file ( ui ) to C++ , however, after more research it looks as it can be converted to .py file (why ?) with this "command "

          qt5-tools uic $FileName$ -o $FileNameWithoutAllExtensions$.

          These "$ text $" are PyCharm IDE macros !! ( No PyCharm documentation found so far )

          S Offline
          S Offline
          StarterKit
          wrote on last edited by StarterKit
          #10

          @AnneRanch I don't know why you stick with qt5-tools and why you speak about C++ if you use PyCharm and python.
          But here is a working example of uic from PySide6 usage with PyCharm if you need it
          uic_config_in_pycharm

          I tried it and it works. But I don't think this is a good and convenint way.
          For example I have 20+ UI-files and pressing right click, selecting tool, executing it... it just too big overhead for me. So I have a simple script that runs uic for all my ui-files at once. I found it to be much quicker and more convenient way.

          P.S. Just remove -g python if you need C++ output

          1 Reply Last reply
          1
          • JonBJ JonB

            @AnneRanch said in Syntax - passing "x.ui" file to uic ?:

            These "$ text $" are PyCharm IDE macros !! ( No PyCharm documentation found so far )

            If you read my reply earlier I supplied you with precisely the documentation link for these.

            S Offline
            S Offline
            StarterKit
            wrote on last edited by StarterKit
            #11

            @JonB actually all these symbols are available if you push a plus sign button to the right of the field for command arguments editing - you may choose from a list there.
            I just think that uic isn't the best tool to use this way...

            P.S. Offtopic. I can't stop wondering how people can do 5 min video from a thing that may be explained in 5 lines of text or 1 picture... But anyway, thanks for your links.

            Pl45m4P 1 Reply Last reply
            1
            • S StarterKit

              @JonB actually all these symbols are available if you push a plus sign button to the right of the field for command arguments editing - you may choose from a list there.
              I just think that uic isn't the best tool to use this way...

              P.S. Offtopic. I can't stop wondering how people can do 5 min video from a thing that may be explained in 5 lines of text or 1 picture... But anyway, thanks for your links.

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by
              #12

              @StarterKit said in Syntax - passing "x.ui" file to uic ?:

              P.S. Offtopic. I can't stop wondering how people can do 5 min video from a thing that may be explained in 5 lines of text or 1 picture... But anyway, thanks for your links.

              Monetarization....
              Esp. on YouTube... Most people stretch their videos to 5, 10 or more minutes in order to get more rewards (YT can put in more ads = more profit)


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              S 1 Reply Last reply
              0
              • Pl45m4P Pl45m4

                @StarterKit said in Syntax - passing "x.ui" file to uic ?:

                P.S. Offtopic. I can't stop wondering how people can do 5 min video from a thing that may be explained in 5 lines of text or 1 picture... But anyway, thanks for your links.

                Monetarization....
                Esp. on YouTube... Most people stretch their videos to 5, 10 or more minutes in order to get more rewards (YT can put in more ads = more profit)

                S Offline
                S Offline
                StarterKit
                wrote on last edited by
                #13

                @Pl45m4 said in Syntax - passing "x.ui" file to uic ?:

                Monetarization....
                Esp. on YouTube... Most people stretch their videos to 5, 10 or more minutes in order to get more rewards (YT can put in more ads = more profit)

                Ok, you cleared my conscience a little :) (there are some pretty useful things go cut ads on YT... I felt a bit guilty using it... Now I'm feeling less guilty :) )

                A 1 Reply Last reply
                0
                • S StarterKit

                  @Pl45m4 said in Syntax - passing "x.ui" file to uic ?:

                  Monetarization....
                  Esp. on YouTube... Most people stretch their videos to 5, 10 or more minutes in order to get more rewards (YT can put in more ads = more profit)

                  Ok, you cleared my conscience a little :) (there are some pretty useful things go cut ads on YT... I felt a bit guilty using it... Now I'm feeling less guilty :) )

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

                  @StarterKit I don't know why you stick with qt5-tools
                  because what you suggested - using uic directly is just another way to "skin the cat ".

                  1. I still do not have a clear definition of passing $text$ to parent application.
                  2. I am thrilled with hijacking the thread with irrelevant chit chat about u-tube. I guess
                    a) it won't get "moved"
                    b) there is definite show of lack of knowledge of "lounge" here

                  Cheers

                  S 1 Reply Last reply
                  0
                  • A Anonymous_Banned275

                    @StarterKit I don't know why you stick with qt5-tools
                    because what you suggested - using uic directly is just another way to "skin the cat ".

                    1. I still do not have a clear definition of passing $text$ to parent application.
                    2. I am thrilled with hijacking the thread with irrelevant chit chat about u-tube. I guess
                      a) it won't get "moved"
                      b) there is definite show of lack of knowledge of "lounge" here

                    Cheers

                    S Offline
                    S Offline
                    StarterKit
                    wrote on last edited by StarterKit
                    #15

                    @AnneRanch, the person who use idioms complains about "hijacking the thread"... interesing... ;)
                    Ok, with regards to your bold text in item #1 - if you able to read then you would see 2 (two) answers to this question in messages above.

                    1. you may look into official documentation
                    2. you may press a plus ("+") button in PyCharm IDE and see available values with hints.

                    I promis you not to move this topic any further with my lack of knowledge :)

                    Christian EhrlicherC 1 Reply Last reply
                    1
                    • S StarterKit

                      @AnneRanch, the person who use idioms complains about "hijacking the thread"... interesing... ;)
                      Ok, with regards to your bold text in item #1 - if you able to read then you would see 2 (two) answers to this question in messages above.

                      1. you may look into official documentation
                      2. you may press a plus ("+") button in PyCharm IDE and see available values with hints.

                      I promis you not to move this topic any further with my lack of knowledge :)

                      Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #16

                      @AnneRanch: Please stop deleting your posts just because others trying to help you (I really wonder that there are some people left here) and then tell you what you don't want to hear...

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      1 Reply Last reply
                      3
                      • Christian EhrlicherC Christian Ehrlicher locked this topic on

                      • Login

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