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. GUI Rendering from Text
Forum Updated to NodeBB v4.3 + New Features

GUI Rendering from Text

Scheduled Pinned Locked Moved General and Desktop
14 Posts 4 Posters 4.5k Views 1 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.
  • T Offline
    T Offline
    tobias.hunger
    wrote on last edited by
    #4

    qlalr is used for parsing in a lot of places inside Qt and related tools. That is hardly documented though and require a lot of understanding of parser theory.

    The sources are part of Qt itself IIRC.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vijaeendra
      wrote on last edited by
      #5

      It qlalr used for converting my format to xml!!?

      Also how good it is to use the classic yacc and lex?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #6

        qlalr is a parser generator, thus is basically a tool like yacc.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Vijaeendra
          wrote on last edited by
          #7

          What do I have to do if I have to convert the text file ( the present format) to the required XML(.ui format)

          Awaiting your reply...

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #8

            Well... you could start by creating a form in designer that contains the types of widgets you are going to have to support, and study its structure. Or... you could just parse the file yourself and create the requried widgets from code directly. I have no idea what would be easier in your case, as you did not tell us anything about your file format and requirements.

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vijaeendra
              wrote on last edited by
              #9

              Thanks for the Reply

              Well., the format is simple... There is a hierarchy... Parent Widgets and child widgets... Each widget is described by the basic characteristics like label,rect coordinates, font(for texts) etc...!!

              And also.., How feasible it is to use the generated yyparse() in my source code!!?

              1 Reply Last reply
              0
              • V Offline
                V Offline
                Vijaeendra
                wrote on last edited by
                #10

                To parse the file myself, what tools does Qt offer.., I can use regular expressions for labels.., but what about the yacc equivalent!!? :-o

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  Vijaeendra
                  wrote on last edited by
                  #11

                  Hi..,

                  I have a parser written using both lex and yacc.. I m happy to see these 'tags' available... But I m not sure how to use it..
                  Can someone please explain how i can go about using it!!?

                  Thanks!

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    koahnig
                    wrote on last edited by
                    #12

                    Can you elaborate a bit, how this is related to Qt?
                    [Edit: Context was not clear prior to merge ]

                    Vote the answer(s) that helped you to solve your issue(s)

                    1 Reply Last reply
                    0
                    • V Offline
                      V Offline
                      Vijaeendra
                      wrote on last edited by
                      #13

                      Well., I wanted to render a GUI which described in a text file. For which I had to write a parser and link the structure with my UI toolkit(Qt)

                      At present, I have the parser files(yacc and lex) but I m not sure how I ll make it work...

                      I came across a useful link, but culd really make much out of what was written

                      http://www.qtcentre.org/archive/index.php/t-3557.html

                      http://www.freehackers.org/thomas/2009/11/22/how-to-use-flex-and-bison-with-qmake-my-own-way/

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        andre
                        wrote on last edited by
                        #14

                        I have merged your topics on the same issue. Please use a single topic for a single issue.

                        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