Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-2935

Regression: QSplashScreen Errors on AIX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.4.1
    • Other
    • None

    Description

      Regression: QSplashScreen Errors on AIX. This worked with Qt 4.3.3.

      This shows the error

      #ifdef _WIN32
      #include <windows.h>
      #include <lmcons.h>
      #else //Added for UNix support — TCS ODC
      #include<sys/utsname.h>
      #include <unistd.h>
      #endif
      #include <time.h>
      #include <QApplication>
      #include <QPixmap>
      #include <QSplashScreen>
      #include <QDialog>
      #include <QString>
      #include <QtCore>

      void IVTSleep ( const int ms )
      {
      #ifdef _WIN32
      Sleep(ms);
      #else
      int seconds = ms/1000;
      if (seconds == 0)
      seconds = 1;
      sleep(seconds);
      #endif
      }

      int main(int argc, char** argv)
      {
      QApplication app( argc, argv );
      QPixmap pix(351, 217);
      pix.fill(Qt::black);
      QSplashScreen splash( pix, Qt::WindowStaysOnTopHint );
      splash.show();
      QDialog mainwindow;
      QString msg = QString("Hello QT! Is this message showing yet?");
      splash.showMessage(msg, Qt::AlignLeft | Qt::AlignBottom, Qt::white);
      app.setMainWidget(&mainwindow);
      IVTSleep(100000000);
      mainwindow.show();
      splash.finish( &mainwindow );
      return app.exec();
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            roschern Nils Christian Roscher-Nielsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes