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. QMediaPlayer Problem monitor Rotate
Forum Updated to NodeBB v4.3 + New Features

QMediaPlayer Problem monitor Rotate

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 1.7k 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.
  • M Offline
    M Offline
    morriluca
    wrote on last edited by
    #1

    Hi,
    This is my code
    @
    this->player = new QMediaPlayer;
    this->player->setMedia(QUrl::fromLocalFile(this->_filePath));
    this->videoWidget = new QVideoWidget();
    this->player->setVideoOutput(videoWidget);
    this->videoWidget->show();
    this->player->play();
    @

    this code work rightly,
    but if i rotate my pc monitor because I have a monitor in vertical position,
    the video don't work. I can hear the sound, but i can't show the video.

    HELP ME!!
    Thank

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Maybe a silly question, does it happen if you rotate it while the application is loaded ? Or also if you start it after you rotated your screen ?

      Also, what OS/Qt/compiler combo are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        morriluca
        wrote on last edited by
        #3

        When i star application the screen is already rotate.
        I use windows XP with qt5.3 compiled with Qt creator.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Ok, then you should go to the "bug report system":http://bugreports.qt-project.org to see if something known. If not, please consider opening a new report providing a minimal compilable example as well as the spec of your screen and related hardware (graphic card model and driver versions etc…)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            morriluca
            wrote on last edited by
            #5

            Ok. I try go to bug report.
            For Test, i try to run my application to another Pc, always with screen rotate. Into second pc it work.

            The first pc, where application don't work with screen rotate,
            mount intel 945 only with supports OpenGL 1.4.

            Qt use OpenGL 2.0. Maybe, this is the problem?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Yes very likely, what Qt package did you install ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M Offline
                M Offline
                morriluca
                wrote on last edited by
                #7

                I used
                Qt 5.3.2 for Windows 32-bit (MinGW 4.8.2, OpenGL)

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  The you might try the ANGLE build to see if it performs better.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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