Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Portuguese
  4. Como resolver este problema do Qt(Problema com o IDE)?
Forum Updated to NodeBB v4.3 + New Features

Como resolver este problema do Qt(Problema com o IDE)?

Scheduled Pinned Locked Moved Portuguese
10 Posts 2 Posters 3.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.
  • L Offline
    L Offline
    lukasbady
    wrote on last edited by
    #1

    Fiz um teste ao criar uma aplicacao qml. Mas esta nao abre, onde e o conteudo criado em qml nao mostra nada como segue a imagem:
    http://pt-br.tinypic.com/view.php?pic=1to1sx&s=5#.UqYEI_RDsy4

    Nao existe erro no codigo:

    import QtQuick 2.0

    Rectangle {
    width: 360
    height: 360
    Text {
    anchors.centerIn: parent
    text: "Hello World"
    }
    MouseArea {
    anchors.fill: parent
    onClicked: {
    Qt.quit();
    }
    }
    }

    isso e normal? Como resolvo?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TioRoy
      wrote on last edited by
      #2

      Você está testando no Android (emulator), ou Desktop?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lukasbady
        wrote on last edited by
        #3

        Rodando em Desktop...

        Ja agradeço pelo resposta

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TioRoy
          wrote on last edited by
          #4

          Estranho.

          O print que você enviou não tem nada. Nem o IDE (QtCreator) aberto.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lukasbady
            wrote on last edited by
            #5

            Sim, se observar ele tem a janela aberta, mas fica todo transparente.

            No caso estava executando como programa final(.exe)....Fiz isso para ver se conseguia algum resultado

            Mas o mesmo acontece com Qt Creator aberto, nada funciona...

            1 Reply Last reply
            0
            • T Offline
              T Offline
              TioRoy
              wrote on last edited by
              #6

              Aparece alguma coisa no "Application Output" do QtCreator?

              Qual versão do Qt você está usando?

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lukasbady
                wrote on last edited by
                #7

                Sim, varios erros de linkagem...

                Starting C:\Qt\Qt5.1.1\5.1.1\msvc2010\bin\qmlscene.exe C:/Qt/Qt5.1.1/Tools/QtCreator/bin/untitled/untitled.qml
                class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(void): Could not initialize egl display: error 12289

                QOpenGLFunctions created with non-current context
                QSGMaterialShader: Shader compilation failed:
                ""
                QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
                QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
                QOpenGLFunctions created with non-current context
                QSGMaterialShader: Shader compilation failed:
                ""
                QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
                QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
                QOpenGLFunctions created with non-current context
                QSGMaterialShader: Shader compilation failed:
                ""
                QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
                QOpenGLFunctions created with non-current context
                QSGMaterialShader: Shader compilation failed:
                ""
                QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
                QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
                QOpenGLFunctions created with non-current context
                QSGMaterialShader: Shader compilation failed:
                ""
                QOpenGLShaderProgram::uniformLocation( pixelSize ): shader program is not linked
                QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
                QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
                QOpenGLFunctions created with non-current context
                QSGMaterialShader: Shader compilation failed:
                ""
                QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
                QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
                QOpenGLShaderProgram::uniformLocation( pixelSize ): shader program is not linked
                QOpenGLFunctions created with non-current context
                QSGMaterialShader: Shader compilation failed:
                ""
                QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
                QOpenGLShaderProgram::uniformLocation( textureScale ): shader program is not linked
                QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
                QOpenGLShaderProgram::uniformLocation( alphaMin ): shader program is not linked
                QOpenGLShaderProgram::uniformLocation( alphaMax ): shader program is not linked

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  TioRoy
                  wrote on last edited by
                  #8

                  O Qt usa OpenGL. Se você instalou o pacote do Qt para OpenGl, é provavel que o seu problema seja esse. Tente instalar a versão com o Angle (que é uma biblioteca de converte as chamadas do OpenGl para o DirectX 9)

                  Dê uma olhada sobre o assunto "aqui":http://qt-project.org/wiki/Qt-5-on-Windows-ANGLE-and-OpenGL

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    lukasbady
                    wrote on last edited by
                    #9

                    Agradeço pelas respostas, vlw mesmo...

                    No caso eu nao instalei a versao com opengl, mas li o link que me passou. Vou fazer os teste e dou resposta sobre os resultados.

                    Existe alguma coisa aqui para avaliar sua ajuda? Como possitiva, dar pontos sei la....

                    agradeco muito

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      TioRoy
                      wrote on last edited by
                      #10

                      Hehe. Não precisa. Curto muito o Qt. E acho que, como eu encontro ajuda e respostas, não custa ajudar também.

                      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