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. How format a c like codes and ...
Forum Updated to NodeBB v4.3 + New Features

How format a c like codes and ...

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

    hi
    i have a code editor

    how i can format (make beautiful & indent blocks) c/c++ language source codes i have an algorithm that i check line by line but this take a huge proccess in above 2000 line of code; do you have a good algorithm like vc++ code formatter (formatting code as soon as possible). please help me and give me a solution

    how i can add close button in tabwidget specially in Mdi apps

    docktWidget in qt have two button as default float and close button how can i add auto hide button or ability to this widget

    this is my generall question and problem please help me i'm waitin to your answer

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You are aware of punctuation? Please use it, your post is very hard to read and understand.

      I'm a bit busy at the moment, so just a quick answer to 2nd question:
      To make tabs closable, you can use "QTabWidget::setTabsClosable()":http://qt-project.org/doc/qt-4.8/qtabwidget.html#tabsClosable-prop.

      (Z(:^

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

        First of all: welcome to DevNet!
        I have re-formatted your question a little to make it a bit more readable. Please do that yourself next time. Also, it would be better if next time, you post multiple (unrelated) questions, please post them as separate questions. For instance, your question of code highlighting as nothing to do with manipulating tab widgets or dock widgets.

        Code formatting is not a trivial thing to do, but fortunately, there is a great open source example available: Qt Creator! As you may or may not have noticed, it works quite snappy.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          harward
          wrote on last edited by
          #4

          my project is commerical ,Is Qt Creator free

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dbzhang800
            wrote on last edited by
            #5

            [quote author="harward" date="1337355239"]my project is commerical ,Is Qt Creator free[/quote]

            Sorry for my poor English, I can't catch up with you. Does a project is commercial or not have anything to do with a IDE such as Qt Creator, Visual Studio, Ellipse, etc. ?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MuldeR
              wrote on last edited by
              #6

              [quote author="1+1=2" date="1337357585"]
              [quote author="harward" date="1337355239"]my project is commerical ,Is Qt Creator free[/quote]

              Sorry for my poor English, I can't catch up with you. Does a project is commercial or not have anything to do with a IDE such as Qt Creator, Visual Studio, Ellipse, etc. ?[/quote]

              Depends on the individual IDE and the license it is released under.

              Visual Studio, for example, has a free "Express" edition that is allowed to be used for commercial products, although you can't install any add-in's with that edition and it is lacking some of the "enterprise" features. On the other hand there are IDE's that do not allow commercial usage, most notably the "Starter" edition of Embarcadero's Delphi. Qt Creator is released under the GNU Lesser General Public License v2.1, which means you can use it for free and for any purpose (including commercial purposes). Though it should be mentioned that if you want to use the Qt Framework (and thus the Qt Libraries) in a commercial application, you may need to acquire a commercial Qt license - depending on how you want to link the libraries to your application...

              My OpenSource software at: http://muldersoft.com/

              Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

              Go visit the coop: http://youtu.be/Jay...

              1 Reply Last reply
              0
              • W Offline
                W Offline
                Wilk
                wrote on last edited by
                #7

                Hello.
                For some information about how to make QDockWidget to hide read "this post":http://qt-project.org/forums/viewthread/16900/. And work a bit yourself to make it auto hide.

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  harward
                  wrote on last edited by
                  #8

                  hi my dears
                  infact,i want create an ide for PHP by Qt;how i can format (make beautiful & indent code blocks) in QPlainTextEdit

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #9

                    You won't like that, but: take a look at QtCreator and Kate sources :)

                    (Z(:^

                    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