Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT UWP and Qt Widget
Forum Updated to NodeBB v4.3 + New Features

QT UWP and Qt Widget

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 2 Posters 952 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.
  • C Offline
    C Offline
    Craftplorer
    wrote on last edited by
    #1

    Hi,
    maybe a stupit question but is it possible to run a normal Qt Widget application with UWP. For example to use bluetooth but still have the "old" widget application?

    jsulmJ 1 Reply Last reply
    0
    • C Craftplorer

      Hi,
      maybe a stupit question but is it possible to run a normal Qt Widget application with UWP. For example to use bluetooth but still have the "old" widget application?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Craftplorer It is possible.
      See https://doc.qt.io/qt-5/winrt-support.html
      You need to use Visual Studio compiler and WinRT Qt version.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Craftplorer
        wrote on last edited by
        #3

        Thank you. Im not sure how. I can run Qt application with MSVC and QML but not with Qt Widget any instruction on how to configure this?

        jsulmJ 1 Reply Last reply
        0
        • C Craftplorer

          Thank you. Im not sure how. I can run Qt application with MSVC and QML but not with Qt Widget any instruction on how to configure this?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Craftplorer said in QT UWP and Qt Widget:

          but not with Qt Widget

          I don't develop for WinRT. What happens if you try to create a widgets project with WinRT Kit?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Craftplorer
            wrote on last edited by
            #5

            Oh is there a difference betwenn WinRT kit and the default UWP kit?
            How do I create a WinRT kit?

            Currently I use the UWP kit with the widget project and it start a "typical" blank uwp window not the standart windows window and i get following messages on the Application Output:

            qt.winrtrunner.app: This plugin does not support propagateSizeHints()
            qt.winrtrunner.app: Cannot find EGLConfig, returning null config
            qt.winrtrunner.app: QEGLPlatformContext: Failed to create context: 3005
            qt.winrtrunner.app: Cannot find EGLConfig, returning null config
            qt.winrtrunner.app: QEGLPlatformContext: Failed to create context: 3005
            qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
            qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
            qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
            qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
            qt.winrtrunner.app: QPainter::pen: Painter not active
            qt.winrtrunner.app: QPainter::setPen: Painter not active
            qt.winrtrunner.app: QPainter::setPen: Painter not active
            qt.winrtrunner.app: QPainter::setPen: Painter not active
            qt.winrtrunner.app: QPainter::setPen: Painter not active
            qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
            qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
            qt.winrtrunner.app: Cannot find EGLConfig, returning null config
            qt.winrtrunner.app: QEGLPlatformContext: Failed to create context: 3005
            qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
            qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
            qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
            qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
            qt.winrtrunner.app: QPainter::pen: Painter not active
            qt.winrtrunner.app: QPainter::setPen: Painter not active
            qt.winrtrunner.app: QPainter::setPen: Painter not active
            qt.winrtrunner.app: QPainter::setPen: Painter not active
            qt.winrtrunner.app: QPainter::setPen: Painter not active
            qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
            qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
            
            jsulmJ 1 Reply Last reply
            0
            • C Craftplorer

              Oh is there a difference betwenn WinRT kit and the default UWP kit?
              How do I create a WinRT kit?

              Currently I use the UWP kit with the widget project and it start a "typical" blank uwp window not the standart windows window and i get following messages on the Application Output:

              qt.winrtrunner.app: This plugin does not support propagateSizeHints()
              qt.winrtrunner.app: Cannot find EGLConfig, returning null config
              qt.winrtrunner.app: QEGLPlatformContext: Failed to create context: 3005
              qt.winrtrunner.app: Cannot find EGLConfig, returning null config
              qt.winrtrunner.app: QEGLPlatformContext: Failed to create context: 3005
              qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
              qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
              qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
              qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
              qt.winrtrunner.app: QPainter::pen: Painter not active
              qt.winrtrunner.app: QPainter::setPen: Painter not active
              qt.winrtrunner.app: QPainter::setPen: Painter not active
              qt.winrtrunner.app: QPainter::setPen: Painter not active
              qt.winrtrunner.app: QPainter::setPen: Painter not active
              qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
              qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
              qt.winrtrunner.app: Cannot find EGLConfig, returning null config
              qt.winrtrunner.app: QEGLPlatformContext: Failed to create context: 3005
              qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
              qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
              qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
              qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
              qt.winrtrunner.app: QPainter::pen: Painter not active
              qt.winrtrunner.app: QPainter::setPen: Painter not active
              qt.winrtrunner.app: QPainter::setPen: Painter not active
              qt.winrtrunner.app: QPainter::setPen: Painter not active
              qt.winrtrunner.app: QPainter::setPen: Painter not active
              qt.winrtrunner.app: QWidget::paintEngine: Should no longer be called
              qt.winrtrunner.app: QPainter::begin: Paint device returned engine == 0, type: 1
              
              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Craftplorer said in QT UWP and Qt Widget:

              Currently I use the UWP kit with the widget project

              So, you actually are able to create an UWP widgets project? Because before you said you only can create QML UWP projects.
              Try to update your graphics card drivers, maybe these errors/warnings will disappear.
              Did you try to put some widgets on your empty main window?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • C Offline
                C Offline
                Craftplorer
                wrote on last edited by
                #7

                Yes I put a label and a button on the main widget with the qt form editor also I can start the widget project with the desktop MSVC qt kit but when I change to uwp MSVC kit I just get a blank window and lots of errors (see above). Also I did all updates one thing to say it is only a windows 10 vm but it should work anyway right?

                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