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. Qt Windows Extras not working on Windows Server 2012 RC2
QtWS25 Last Chance

Qt Windows Extras not working on Windows Server 2012 RC2

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 4 Posters 1.9k 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 3 Jun 2018, 20:19 last edited by
    #2

    Hi,

    What do you mean by not working ?
    What version of Qt ?

    Did you check whether there's a missing dependency on your WinServer2012 for the QtWinExtras module ?

    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
      Mr Gisa
      wrote on 3 Jun 2018, 20:23 last edited by Mr Gisa 6 Mar 2018, 20:23
      #3

      I'm using Qt 5.10.1, MSVC 2015. It's all there, all the dlls, I used windeployqt.

      It's just not working, on my Windows 10 it's working the progress indicator on the taskbar, however on my Windows Server 2012 RC2 it doesn't appear.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 3 Jun 2018, 20:25 last edited by
        #4

        I was more thinking about a subtle difference in the system libraries, hence a check with e.g. Dependency Walker on your server machine.

        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
        1
        • M Offline
          M Offline
          Mr Gisa
          wrote on 3 Jun 2018, 20:31 last edited by
          #5

          I have the Qt5WinExtras.dll in the folder, wasn't it supposed to run?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 3 Jun 2018, 20:43 last edited by
            #6

            As I wrote before: check the system dependencies. There might be subtleties between Windows Server 2012 (especially since it's a release candidate) and Win10.

            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
            2
            • M Offline
              M Offline
              Mr Gisa
              wrote on 3 Jun 2018, 21:16 last edited by
              #7

              Windows Server:
              0_1528060001112_9c932144-4d82-4562-9836-90d09ec10b2c-image.png

              Windows 10:

              0_1528060508208_1c8166c7-3fac-4921-aca8-5c864ae4b7a6-image.png

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mr Gisa
                wrote on 4 Jun 2018, 22:09 last edited by
                #8

                I still can't get this to work, has anyone have the same problem?

                A 1 Reply Last reply 4 Jun 2018, 22:21
                0
                • M Mr Gisa
                  4 Jun 2018, 22:09

                  I still can't get this to work, has anyone have the same problem?

                  A Offline
                  A Offline
                  ambershark
                  wrote on 4 Jun 2018, 22:21 last edited by
                  #9

                  @Mr-Gisa Windows 2012 server is very different than Windows 10. I wouldn't expect that stuff made specifically for Win10 would work on 2012. In my experience it rarely does. I've come to really hate 2012 server for all the incompatibilities I've encountered.

                  You may need to get a 2012 machine to build and deploy your project with. I haven't deployed much in windows (especially to 2012) so I can't offer much more advice there.

                  My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                  1 Reply Last reply
                  1
                  • H Offline
                    H Offline
                    hskoglund
                    wrote on 4 Jun 2018, 23:44 last edited by
                    #10

                    Hi, @ambershark is correct that Windows 2012 server is not WIndows 10, it's more or less the same as Windows 8 if you're dealing with the UI of it.

                    But Qt's Windows Extras should would on all Microsoft's OS that's newer than Vista, including the QWinTaskbarProgress.
                    I tested on Qt 5.110 MSVC2015 32-bit, started with an empty vanilla Widgets project, added a pushbutton to the ui and added the click slot.

                    Add "winextras" to the .pro file, add these #includes to mainwindow.cpp:

                    #include <QWinTaskbarButton>
                    #include <QWinTaskbarProgress>
                    

                    and then insert this code in the clicked() slot:

                    void MainWindow::on_pushButton_clicked()
                    {
                        static int i = 0;
                    
                        i += 20;
                        if (i >= 100)
                            qApp->quit();
                    
                        auto button = new QWinTaskbarButton(this);
                        button->setWindow(windowHandle());
                    
                        auto progress = button->progress();
                        progress->setVisible(true);
                        progress->setValue(i);
                    
                        ui->pushButton->setText(QString::number(i));
                    }
                    

                    I tested on Win7, Win8 and Win10, works ok. However I only have Windows 2012 Server R2 and not RC2 (for this it should be the same I think):
                    0_1528155298019_Screenshot from 2018-06-05 01-34-13.png

                    1 Reply Last reply
                    4
                    • M Offline
                      M Offline
                      Mr Gisa
                      wrote on 5 Jun 2018, 07:52 last edited by Mr Gisa 6 May 2018, 08:41
                      #11

                      @hskoglund Your code worked here... I understand why it's not working. It doesn't work with indeterminate progress, it only works when you set a minimum and max value and set a value to it.

                      1 Reply Last reply
                      0

                      11/11

                      5 Jun 2018, 07:52

                      • Login

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