Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Learning C++/Qt

Learning C++/Qt

Scheduled Pinned Locked Moved The Lounge
questionc++learning
11 Posts 6 Posters 0 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.
  • B Offline
    B Offline
    Brisingr Aerowing
    wrote on last edited by
    #1

    Anyone here have some good references? I know of the Qt Documentation and Wiki, so no need to post those.

    What do you get when you cross a joke with a rhetorical question?

    M N M 3 Replies Last reply
    0
    • B Brisingr Aerowing

      Anyone here have some good references? I know of the Qt Documentation and Wiki, so no need to post those.

      What do you get when you cross a joke with a rhetorical question?

      M Offline
      M Offline
      Marco Bertschi
      wrote on last edited by
      #2

      I've been working with Qt for a good while now (about a year), got some tips written on that topic. Important: Qt has two RegEx engines. QRegExp is old, outdated and not maintained. [1[^]] If you plan on doing GUI stuff with Qt, I strongly recommend QML[^] instead of QWidgets (QML can be used on any platform, but QWidgets can't). You may also find Multi-Threading Tutorials where they recommend you to overload the run() method of QThread - Don't do it, they have changed that to a more secure and more customizable way: http://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/[^] If you have a Mac where you want to install your Development Environment, you have to watch a few things[^] (Linux and Windows installers from the download page work out of the box). Apart from that, be warned that tutorials for earlier versions may not reflect what is recommended to be done when using the latest 5.2.1 release. Signals and Slots are a PITA at first, but after a while you get a pretty good hang on it. Always watch the console output of the debugger, if you made a typo while connecting them it will not be shown before runtime. So, and if you got any more questions you can either ask me or someone at the Qt forums[^] - They're usually pretty quick with answering questions. I'm currently writing The big Qt cross platform Desktop introduction

      B G S 3 Replies Last reply
      0
      • M Marco Bertschi

        I've been working with Qt for a good while now (about a year), got some tips written on that topic. Important: Qt has two RegEx engines. QRegExp is old, outdated and not maintained. [1[^]] If you plan on doing GUI stuff with Qt, I strongly recommend QML[^] instead of QWidgets (QML can be used on any platform, but QWidgets can't). You may also find Multi-Threading Tutorials where they recommend you to overload the run() method of QThread - Don't do it, they have changed that to a more secure and more customizable way: http://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/[^] If you have a Mac where you want to install your Development Environment, you have to watch a few things[^] (Linux and Windows installers from the download page work out of the box). Apart from that, be warned that tutorials for earlier versions may not reflect what is recommended to be done when using the latest 5.2.1 release. Signals and Slots are a PITA at first, but after a while you get a pretty good hang on it. Always watch the console output of the debugger, if you made a typo while connecting them it will not be shown before runtime. So, and if you got any more questions you can either ask me or someone at the Qt forums[^] - They're usually pretty quick with answering questions. I'm currently writing The big Qt cross platform Desktop introduction

        B Offline
        B Offline
        Brisingr Aerowing
        wrote on last edited by
        #3

        'K. Thanks.

        What do you get when you cross a joke with a rhetorical question?

        M 1 Reply Last reply
        0
        • B Brisingr Aerowing

          'K. Thanks.

          What do you get when you cross a joke with a rhetorical question?

          M Offline
          M Offline
          Marco Bertschi
          wrote on last edited by
          #4

          No big deal. Happy Learning :)

          I will never again mention that Dalek Dave was the poster of the One Millionth Lounge Post, nor that it was complete drivel.

          How to ask a question

          1 Reply Last reply
          0
          • M Marco Bertschi

            I've been working with Qt for a good while now (about a year), got some tips written on that topic. Important: Qt has two RegEx engines. QRegExp is old, outdated and not maintained. [1[^]] If you plan on doing GUI stuff with Qt, I strongly recommend QML[^] instead of QWidgets (QML can be used on any platform, but QWidgets can't). You may also find Multi-Threading Tutorials where they recommend you to overload the run() method of QThread - Don't do it, they have changed that to a more secure and more customizable way: http://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/[^] If you have a Mac where you want to install your Development Environment, you have to watch a few things[^] (Linux and Windows installers from the download page work out of the box). Apart from that, be warned that tutorials for earlier versions may not reflect what is recommended to be done when using the latest 5.2.1 release. Signals and Slots are a PITA at first, but after a while you get a pretty good hang on it. Always watch the console output of the debugger, if you made a typo while connecting them it will not be shown before runtime. So, and if you got any more questions you can either ask me or someone at the Qt forums[^] - They're usually pretty quick with answering questions. I'm currently writing The big Qt cross platform Desktop introduction

            G Offline
            G Offline
            Gary Wheeler
            wrote on last edited by
            #5

            Now you show up. I did a Qt project last year, and it tweren't easy :sigh:.

            Software Zen: delete this;

            M 1 Reply Last reply
            0
            • B Brisingr Aerowing

              Anyone here have some good references? I know of the Qt Documentation and Wiki, so no need to post those.

              What do you get when you cross a joke with a rhetorical question?

              N Offline
              N Offline
              newton saber
              wrote on last edited by
              #6

              This is a very good book on C++ / QT. Very readable. You can see it on amazon. C++ GUI Programming with Qt 4 (2nd Edition) (Prentice Hall Open Source Software Development Series)[^]

              M 1 Reply Last reply
              0
              • G Gary Wheeler

                Now you show up. I did a Qt project last year, and it tweren't easy :sigh:.

                Software Zen: delete this;

                M Offline
                M Offline
                Marco Bertschi
                wrote on last edited by
                #7

                I was probably a beginner myself when you did it :laugh: I don't see myself as Qt Pro|Guru, just as someone who ran into the common traps already and can guide beginners around them ;)

                I will never again mention that Dalek Dave was the poster of the One Millionth Lounge Post, nor that it was complete drivel.

                How to ask a question

                1 Reply Last reply
                0
                • N newton saber

                  This is a very good book on C++ / QT. Very readable. You can see it on amazon. C++ GUI Programming with Qt 4 (2nd Edition) (Prentice Hall Open Source Software Development Series)[^]

                  M Offline
                  M Offline
                  Marco Bertschi
                  wrote on last edited by
                  #8

                  It's a nice book, no doubt. But Qt is already at version 5.2.1, and I'm not sure if this book covers 'hot' topics as QML (for example) accurately. Don't get me wrong, it's good for a starter but as soon as you want to support Android|iOS|WinRT that book won't probably help much. Qt is a cross-platform framework, and a GUI written with Qt technologies shall support all available platforms (IMHO, at least).

                  I will never again mention that Dalek Dave was the poster of the One Millionth Lounge Post, nor that it was complete drivel.

                  How to ask a question

                  1 Reply Last reply
                  0
                  • M Marco Bertschi

                    I've been working with Qt for a good while now (about a year), got some tips written on that topic. Important: Qt has two RegEx engines. QRegExp is old, outdated and not maintained. [1[^]] If you plan on doing GUI stuff with Qt, I strongly recommend QML[^] instead of QWidgets (QML can be used on any platform, but QWidgets can't). You may also find Multi-Threading Tutorials where they recommend you to overload the run() method of QThread - Don't do it, they have changed that to a more secure and more customizable way: http://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/[^] If you have a Mac where you want to install your Development Environment, you have to watch a few things[^] (Linux and Windows installers from the download page work out of the box). Apart from that, be warned that tutorials for earlier versions may not reflect what is recommended to be done when using the latest 5.2.1 release. Signals and Slots are a PITA at first, but after a while you get a pretty good hang on it. Always watch the console output of the debugger, if you made a typo while connecting them it will not be shown before runtime. So, and if you got any more questions you can either ask me or someone at the Qt forums[^] - They're usually pretty quick with answering questions. I'm currently writing The big Qt cross platform Desktop introduction

                    S Offline
                    S Offline
                    Sean Hopen
                    wrote on last edited by
                    #9

                    (Good reply Marco. And good luck with the book I think we need a good new book on Qt. ) If I may add my few cents to that: C++ programmers know there are many ways and styles to use C++. Try to find out the Qt way of doing things. Its a good way, and it saves you a lot of time. For example: Make sure you understand the implicitly shared data types, and the smart pointers. They save you a lot of effort. QML is definitely the way to go, IMO, not just for cross-platform. For databinding to the UI (QML), I like QProperties, but there's a lot of ceremonial code required for them. You need to find a good snippet, macro, code-completion thingy in your IDE to take care of all the typing you have to do for them. An alternative to QProperties, if you have dumb objects consider using QDeclartivePropertyMaps. They're a quick way of making simple objects that automatically bind to your QML. I have some other tips in this blog post/[^]. Good luck.

                    M 1 Reply Last reply
                    0
                    • S Sean Hopen

                      (Good reply Marco. And good luck with the book I think we need a good new book on Qt. ) If I may add my few cents to that: C++ programmers know there are many ways and styles to use C++. Try to find out the Qt way of doing things. Its a good way, and it saves you a lot of time. For example: Make sure you understand the implicitly shared data types, and the smart pointers. They save you a lot of effort. QML is definitely the way to go, IMO, not just for cross-platform. For databinding to the UI (QML), I like QProperties, but there's a lot of ceremonial code required for them. You need to find a good snippet, macro, code-completion thingy in your IDE to take care of all the typing you have to do for them. An alternative to QProperties, if you have dumb objects consider using QDeclartivePropertyMaps. They're a quick way of making simple objects that automatically bind to your QML. I have some other tips in this blog post/[^]. Good luck.

                      M Offline
                      M Offline
                      Marco Bertschi
                      wrote on last edited by
                      #10

                      You got some good points there :thumbsup:

                      Sean Hopen wrote:

                      And good luck with the book I think we need a good new book on Qt.

                      It's an article on CodeProject, not a book ;)

                      I will never again mention that Dalek Dave was the poster of the One Millionth Lounge Post, nor that it was complete drivel.

                      How to ask a question

                      1 Reply Last reply
                      0
                      • B Brisingr Aerowing

                        Anyone here have some good references? I know of the Qt Documentation and Wiki, so no need to post those.

                        What do you get when you cross a joke with a rhetorical question?

                        M Offline
                        M Offline
                        Member 4608898
                        wrote on last edited by
                        #11

                        Depends on which version of Qt you want to use. The principles are the same but the locations of the header files are completely different between Qt3, Qt4 and Qt5.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups