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. Qt 5 General examples?
Forum Updated to NodeBB v4.3 + New Features

Qt 5 General examples?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 5 Posters 14.9k 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.
  • R Offline
    R Offline
    rickbkis
    wrote on last edited by
    #1

    Qt: 5.0, built from Git source
    OS: Linux (Ubuntu 12.10)

    Can someone post where to find the general examples for Qt5? They don't appear to be in the repository tree.

    I pulled over the Qt4 examples and am trying to build them (examples/widgets/calendarwidget, for instance), but am getting errors.

    Is there a wiki on this or some changed procedure information to get the examples?

    thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      Check the "Qt Examples And Tutorials section of Qt 5 documentation":http://qt-project.org/doc/qt-5.0/qtdoc/qtexamplesandtutorials.html

      http://anavi.org/

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rickbkis
        wrote on last edited by
        #3

        Yes, that shows the examples, but it doesn't explain where to get them. I'd like to get the example tree, not look at example writeups.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          PierreChicoine
          wrote on last edited by
          #4

          They're difficult to find. I've been looking for 30 minutes and only find html examples and writeups and the qt5 opensource download don't have them built in.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PierreChicoine
            wrote on last edited by
            #5

            Found them. You need to download them one file at a time from their directories. (I think)

            https://qt.gitorious.org/qt/qtbase/trees/stable/examples

            1 Reply Last reply
            0
            • P Offline
              P Offline
              PierreChicoine
              wrote on last edited by
              #6

              I spoke too soon. You can download a tar called stable and uncompress it. It's on the right side of the page.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tzander
                wrote on last edited by
                #7

                did you check the individual git repos (like qtbase), it seems to have an example dir.
                Thats where I would expect them ;)

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  rols
                  wrote on last edited by
                  #8

                  I had this problem and it was because I did not have permissions to the examples file in the Qt directory. for me the solution was to take ownership of the examples folder:

                  sudo chown -R <username>:<username> /opt/Qt/5.1.1/gcc_64/examples

                  where <username> is your username and /opt/Qt/5.1.1/gcc_64/examples is the directory of my examples.

                  Hope that helps you

                  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