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. Questions about QStringBuilder
Forum Updated to NodeBB v4.3 + New Features

Questions about QStringBuilder

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 5.6k 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.
  • C Offline
    C Offline
    Chromatix
    wrote on last edited by
    #1

    Hello.
    In "QString's documentation":http://qt-project.org/doc/qt-4.8/qstring.html#details, in the section about QStringBuilder it says "There are three ways you can access this improved method of string construction...", then it explains replacing + by % as one way, defining QT_USE_QSTRINGBUILDER as the second way, and... wait, where is the third way?

    Also I was just wondering why QStringBuilder provides an operator%, but doesn't provide any operator%=? The latter operator would be just as useful of the former. So one doesn't have to write someQString = someQString % restOfData instead of the neat form someQString %= restOfData.

    Another question is why QString doesn't provide a constructor and operator= accepting QStringBuilder. With it expressions like someQString = InLine % Concat % eNation will become possible.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chromatix
      wrote on last edited by
      #2

      Since no one has replyed yet, let me clarify this a little. I want to file the above issues as bug reports and feature requests.

      Since I am very newer to Qt than most people here, I think I had to ask first to know what do you experts think about this.

      The "three reasons" in the documentation is almost surely a documentation bug. However I still want to know the third way.

      And do you find any particular reason for QStringBuilder not to implement the above operators? Or the developers just didn't think about implementing them?

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

        Two things you have to acknowledge.
        First we are mostly volunteers answering questions. Only few Trolls are around, but they may have different focus than your question.
        Second It is the Easter weekend even some crazy developers are using to take vacations and even away from their computer ;-)

        It is always good to raise questions in the forum before torpeding the community with bug reports. A bit patience may be required especially on traditional vacation weekends.
        Nevertheless, if you are sure that this is a bug or if you want to place a suggestion, you can file a bug/suggestion report on "JIRA":https://bugreports.qt-project.org/

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

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chromatix
          wrote on last edited by
          #4

          Thanks for the tips. :-)
          I thought the question was ignored by people because of being "un-smart". If they are valid questions, i'd like to make the Trolls aware.
          I have patience; am not worried. :)

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

            [quote author="Chromatix" date="1333802127"]Thanks for the tips. :-)
            I thought the question was ignored by people because of being "un-smart". If they are valid questions, i'd like to make the Trolls aware.
            I have patience; am not worried. :)[/quote]

            If you like to make sure that your request is not getting lost, a suggestion on JIRA will be finally required. This is the only place monitored and checked for such issues. Here in devnet it may be overseen or forgotten. Especially it does not facilitate progress or any of the other steps required.

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

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

              I think it would be best to raise this issue on IRC. Get onto the freenode network, and pop into the @qt-labs channel. That's where the developers working on Qt itself hang out. There you can discuss if your suggestions are feasible or not. There might be technical reasons for these missing operators, such as the technique used for QStringBuilder not working with these operators... However, a lot of technical insight in how this class actually works interally is needed to answer such questions, and you'll find a lot more of such knowledge on that channel.

              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