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. I can't find the Example Demos
Forum Updated to NodeBB v4.3 + New Features

I can't find the Example Demos

Scheduled Pinned Locked Moved General and Desktop
27 Posts 9 Posters 22.8k 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.
  • I Offline
    I Offline
    iamcreasy
    wrote on last edited by
    #9

    I tried with, demos.pro, it gives me the following error,

    C:\QtSDK\Demos\demos-build-desktop\shared....\4.7\shared\arthurwidgets.cpp:54: error: private/qpixmapdata_p.h: No such file or directory

    this shouldn't be! :(

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #10

      Same here regarding the demos (I didn't investigate any further though)

      1 Reply Last reply
      0
      • I Offline
        I Offline
        iamcreasy
        wrote on last edited by
        #11

        got an idea, I can install the old version to get the demos. :D

        but, that's not a solution anyway :P

        @loladiro do you face the same thing for both examples.pro and demos.pro

        there is another qtdemo.pro inside Demos/qtdemos, but it doesn't compile too.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jim_kaiser
          wrote on last edited by
          #12

          @loladiro @creasy.. Let me clear this up.. AFAIK this is a difference in Qt sources in Linux and Windows. In linux, we have a seperate include folder with the headers.. The private folder in this include seems to exist in QtSDK/Desktop/Qt/471/gcc/ and QtSDK/Desktop/Qt/472/gcc/ but not the 473.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            loladiro
            wrote on last edited by
            #13

            Ok, -the examples are compiling without any problem and- the demo error is a "known bug":http://bugreports.qt.nokia.com/browse/QTSDK-636

            Edit: @jim_kaiser: How come you always post when I'm just writing mine. But you're right, it is platform dependent (see also the bugreport I linked to). However, I still think that linking to private headers is bad practice since those are not part of the public API and can be changed or removed.

            EDIT2: Correction. I was a little early to claim the examples were compiling. In fact I get the same error.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jim_kaiser
              wrote on last edited by
              #14

              But hey... i just compiled the qtdemo.pro and it worked. Qt Creator 2.2.0 .. SDK 1.1.1

              [Edit: Sorry.. I assumed we were talking about Linux.. Works in Linux. In Windows I should check.. tomorrow at work! But yeah mostly it should just be about adding an include directory maybe..]
              [Edit again: Okay known bug... I shall rest..]

              1 Reply Last reply
              0
              • L Offline
                L Offline
                loladiro
                wrote on last edited by
                #15

                I'm on Linux (Ubuntu), but according to the bug report, the private header file is not needed on Windows.

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jim_kaiser
                  wrote on last edited by
                  #16

                  @loladiro: It doesn't compile on linux for you? Works for me.. And hehe... we do tend to post simultaneously! And yeah the private files are probably not needed.. We do link to one in our application at work... but we also maintain our patch in the related classes each version.. so thats okay :P. Could you check if using "QtGui/private/qpixmapdata_p.h" works? In case the sub dirs are not added in the include path. But if not needed on Windows as the bug report says.. can be commented i presume.

                  1 Reply Last reply
                  0
                  • I Offline
                    I Offline
                    iamcreasy
                    wrote on last edited by
                    #17

                    yeh, commented it out and with 4 warnings it compiles successfully. But, the output folder has a Makefile and a lot of other folders in it.

                    Now what to do?

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      jim_kaiser
                      wrote on last edited by
                      #18

                      If the compile completed successfully.. there should be an exe in the QtSDK/Demos/bin..?

                      [Edit: On compiling the qtdemo.pro through QtCreator for desktop target, the exe was generated in that location..]

                      1 Reply Last reply
                      0
                      • I Offline
                        I Offline
                        iamcreasy
                        wrote on last edited by
                        #19

                        No bin folder is there. But, I guess the compiler's setting is different here.

                        Files are I guess here,

                        Demos\demos-build-desktop\browser\release

                        I have some *.exe files.(Demos\demos-build-desktop\browser\release\browser.exe) but, whenever I try to run any executable, I get the following error,

                        "The program cann't start because mingwm10.dll is missing form your computer. Try reinstalling the program to fix this problem."

                        1 Reply Last reply
                        0
                        • I Offline
                          I Offline
                          iamcreasy
                          wrote on last edited by
                          #20

                          I added "C:\QtSDK\mingw\bin;C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin;" to windows PATH, now things are working fine.But, 2 issues

                          1. No dedicated OpenGL Examples as they were before
                          2. No global example browsing context.

                          :-s

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            sammy_dsouza
                            wrote on last edited by
                            #21

                            Same problem here :(
                            I think dropping qtDemo.exe from the SDK is a bad idea. Right now, I'm using the same workaround as iamcreasy ; 4.7.3 for the actual work, 4.7.1 for the demos.

                            1 Reply Last reply
                            0
                            • I Offline
                              I Offline
                              iamcreasy
                              wrote on last edited by
                              #22

                              This is very creepy. :(

                              I was even thinking about switching back to older version for using the working OpenGL Examples.

                              "OpenGL Cube Example doesn't run":http://developer.qt.nokia.com/forums/viewthread/6884

                              But, still Im not sure, if the older versions, support OpenGL 3.3 or greater context.

                              any thoughts?

                              1 Reply Last reply
                              0
                              • EddyE Offline
                                EddyE Offline
                                Eddy
                                wrote on last edited by
                                #23

                                People keep on asking about this. so i searched the bug tracker to add a suggestion but there is already a bug report for the missing qtdemo http://bugreports.qt.nokia.com/browse/QTSDK-780

                                Qt Certified Specialist
                                www.edalsolutions.be

                                1 Reply Last reply
                                0
                                • I Offline
                                  I Offline
                                  iamcreasy
                                  wrote on last edited by
                                  #24

                                  They should integrate the compiled demo like they did before. It may increase the download size but, for windows its already 1.5gb, an extra 200mb wont cause any trouble.

                                  1 Reply Last reply
                                  0
                                  • U Offline
                                    U Offline
                                    ucomesdag
                                    wrote on last edited by
                                    #25

                                    At least make it an optional download would be good thing.
                                    [quote author="iamcreasy" date="1309528030"]They should integrate the compiled demo like they did before. It may increase the download size but, for windows its already 1.5gb, an extra 200mb wont cause any trouble.[/quote]

                                    Write “Qt”, not “QT” (QuickTime).

                                    1 Reply Last reply
                                    0
                                    • L Offline
                                      L Offline
                                      Leon
                                      wrote on last edited by
                                      #26

                                      I am not sure if this is what you are looking for but today i bumped into "this":http://gitorious.org/~agateau/qt/agateau-qt ..
                                      You can download all qt examples/demos.. Just click at the source tree and then download the tar.gz file

                                      1 Reply Last reply
                                      0
                                      • E Offline
                                        E Offline
                                        erdinc09
                                        wrote on last edited by
                                        #27

                                        Hi, I have the all examples, demos and qtdemo compiled successfully (with some tricks) in ubuntu. When I lunch the the qtdemo binary in "QtSdk\Demo\bin" directory I see the list of programs available but I cannot lunch them. I get the error "Could not lunch the example, ensure that it is built". I am sure that they are compiled, I can lunch them manually from their source directories. Also the descriptions are missing. I see the warning "Could not load description. Ensure that documentation for Qt is built". I have this problem both in the versions 4.7.3 and 4.7.4. I have this problem also in the windows environment. Any ideas about this?

                                        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