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. Problems using QtWinExtras on Windows XP
Forum Updated to NodeBB v4.3 + New Features

Problems using QtWinExtras on Windows XP

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.2k 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.
  • C Offline
    C Offline
    cijic
    wrote on last edited by
    #1

    Hello. Can anyone tell how to run program with code like this on Windows XP, to ignore futures for Win7 if it can't be run? App compiles, but crashes.

    @
    #include "mainwindow.h"
    #include "ui_mainwindow.h"
    #include <QtWinExtras>

    MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
    ui->setupUi(this);

    QWinThumbnailToolBar *m_tt = new QWinThumbnailToolBar(this);
    m_tt->setWindow(windowHandle());
    

    }

    MainWindow::~MainWindow()
    {
    delete ui;
    }

    @

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

      Hi,

      Maybe with "QSysInfo":http://qt-project.org/doc/qt-5/qsysinfo.html

      Hope it helps

      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
      • C Offline
        C Offline
        cijic
        wrote on last edited by
        #3

        No. It crashes anyway.
        [quote author="SGaist" date="1397766008"]Hi,

        Maybe with "QSysInfo":http://qt-project.org/doc/qt-5/qsysinfo.html

        Hope it helps[/quote]

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          Hi,

          Thumbnail toolbars require Windows 7 or higher.

          Your program crashes because it tries to call functions in Windows system DLLs that don't exist. Use QSysInfo::WindowsVersion to check the version. If it's older than Windows 7, do not create QWinThumbnailToolBar.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          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