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. Fade out sound

Fade out sound

Scheduled Pinned Locked Moved General and Desktop
18 Posts 3 Posters 8.3k Views
  • 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.
  • D Offline
    D Offline
    DenisKormalev
    wrote on 24 Jun 2011, 10:00 last edited by
    #9

    AFAIK desktop Qt in QtSDK doesn't contain QtMobility. You have to build it manually or use one precompiled (if you use some package-based linux distro it will be easy to install it from repos).

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Swoone
      wrote on 24 Jun 2011, 10:05 last edited by
      #10

      It does contain it. The create project wizard even supports creating a mobile project. Which still feels weird since I am targeting a 52" inch desktop environment ;-)

      This is the .pro file created (and my changes):

      @

      Add files and directories to ship with the application

      by adapting the examples below.

      file1.source = myfile

      dir1.source = mydir

      DEPLOYMENTFOLDERS = # file1 dir1

      symbian:TARGET.UID3 = 0xE80DF1B4

      Smart Installer package's UID

      This UID is from the protected range

      and therefore the package will fail to install if self-signed

      By default qmake uses the unprotected range value if unprotected UID is defined for the application

      and 0x2002CCCF value if protected UID is given to the application

      #symbian:DEPLOYMENT.installer_header = 0x2002CCCF

      Allow network access on Symbian

      symbian:TARGET.CAPABILITY += NetworkServices

      If your application uses the Qt Mobility libraries, uncomment

      the following lines and add the respective components to the

      MOBILITY variable.

      CONFIG += mobility
      MOBILITY += multimedia

      SOURCES += main.cpp mainwindow.cpp
      HEADERS += mainwindow.h
      FORMS += mainwindow.ui

      Please do not modify the following two lines. Required for deployment.

      include(deployment.pri)

      qtcAddDeployment()

      @

      And here is my main.cpp:

      @
      #include "mainwindow.h"
      #include <QApplication>
      #include <QMediaPlayer>

      int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);

      MainWindow mainWindow;
      mainWindow.setOrientation(MainWindow::ScreenOrientationAuto);
      mainWindow.showExpanded();
      
      return app.exec();
      

      }
      @

      And it does not compile for previous posted reasons!

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on 24 Jun 2011, 12:16 last edited by
        #11

        Qt Creator is only part of Qt SDK and another part is Qt library itself. Your errors really looks like QtM is missing, aren't they?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          loladiro
          wrote on 24 Jun 2011, 12:25 last edited by
          #12

          Do you have
          @
          #include <QtMultimediaKit>
          @
          and more importantly, did you select Qt Mobility APIs in the Updater?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Swoone
            wrote on 24 Jun 2011, 12:45 last edited by
            #13

            Yes, QtM appears to be missing. But when I go this url it says QtM is part of the SDK:

            https://qt.nokia.com/products/qt-addons/mobility

            That's also claimed on this page, from where I downloaded and installed the SDK:

            https://qt.nokia.com/downloads

            Check these screenshots from my system for more details:

            http://www.vanmezelf.nl/images/screenshot.png
            http://www.vanmezelf.nl/images/screenshot-2.png

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DenisKormalev
              wrote on 24 Jun 2011, 12:55 last edited by
              #14

              It can be part of mobile libraries (symbian, maemo), I'm not sure on this btw (I'm using mostly selfbuilded Qt or Qt from my linux repo).

              1 Reply Last reply
              0
              • L Offline
                L Offline
                loladiro
                wrote on 24 Jun 2011, 12:57 last edited by
                #15

                Try copying the mobility.prf from QtSDK/Simulator/Qt/gcc/mkspecs/features to QtSDK/Desktop/Qt/gcc/mkspecs/features

                EDIT: This might not work. Don't be disappointed if it doesn't.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Swoone
                  wrote on 24 Jun 2011, 13:05 last edited by
                  #16

                  Okay, thanks for your efforts anyway :-)

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Swoone
                    wrote on 24 Jun 2011, 13:28 last edited by
                    #17

                    I did. Same errors after reloading and rebuilding the project.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Swoone
                      wrote on 24 Jun 2011, 13:52 last edited by
                      #18

                      Finally I succeeded achieving this in Phonon on Windows 7. I just adjusted the volume level to create the fade out.

                      1 Reply Last reply
                      0

                      18/18

                      24 Jun 2011, 13:52

                      • Login

                      • Login or register to search.
                      18 out of 18
                      • First post
                        18/18
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved