Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Is there a way to change the pointer star (*) placement in Qt Creator?
Qt 6.11 is out! See what's new in the release blog

Is there a way to change the pointer star (*) placement in Qt Creator?

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 2 Posters 3.0k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I've been using Qt Creator for some time but the only thing that bothers me is the way Qt Creator places the *-symbol like this (when pasting code or automatically updating the header file etc.):
    @Type *name;@

    while I strongly prefer it like:
    @Type* name;@

    I haven't found any setting related to this under Tools => Options.
    Is there any way I can change how Qt Creator handles this?

    1 Reply Last reply
    0
    • JKSHJ Online
      JKSHJ Online
      JKSH
      Moderators
      wrote on last edited by
      #2

      Tools -> Options -> C++ -> Code Style -> Edit -> Pointers and References

      This feature was introduced quite recently (Qt Creator 2.7.2, IIRC)

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        After installing the latest version of Qt Creator I'm able to see the the setting.

        However, trying it out yields not-expected results...
        !http://i.imgur.com/TUvuPnV.png!

        I've ticked only "Type name" and "Left const/volatile" in the Pointers and References tab which makes the preview look good.

        Thanks for your help.

        1 Reply Last reply
        0
        • JKSHJ Online
          JKSHJ Online
          JKSH
          Moderators
          wrote on last edited by
          #4

          Hmm... looks like you've found a bug. It doesn't work on my system either. Would you like to file a bug report at https://bugreports.qt-project.org/ ?

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            I've reported a bug.

            https://bugreports.qt-project.org/browse/QTCREATORBUG-10124

            Thanks for your reply.

            1 Reply Last reply
            0
            • JKSHJ Online
              JKSHJ Online
              JKSH
              Moderators
              wrote on last edited by
              #6

              Great; thanks for the report and the link :)

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              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