Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85533

uic creates broken sourcefile if there is a string longer than 65535 characters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.0
    • Build tools: uic
    • None
    • Win10
      MSVC17
      QTCreator Designer
      Intel Core i7-7700
      8G RAM
    • All

    Description

      If you create a QTextBrowser with an html longer than 65535 characters, the code generator will fail to create a functional source file, because compiler must support only 65535 characters. In this case, the code generator should split the string into several QStrings or create a attached source file, which will be loaded dynamically.

      How to reproduce:

      1. Open QtCreator
      2. Create an application
      3. Go to the Designer by opening/creating an ui file
      4. Add an QTextBrowser to the Widget
      5. Add more than 65535 characters to the source section of the Textbrowser
        Alternatively, adding The LGPLv2 licence text to the Text tab should have the same effect.

      Outcome:
      The application does not compile anymore, since there are more than 65535 char's in one static c-string.

      Expected:

      The application compiles, eather by splitting the character into several parts or by outsourcing the text into a resource.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jkobus Jarek Kobus
            febbe Fabian Keßler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes