Results 1 to 6 of 6

Thread: error: QPlastiqueStyle: No such file

  1. #1
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default error: QPlastiqueStyle: No such file

    it seems QPlastiqueStyle is not implemented in Qt 5.0.1.
    I need to create a splash screen. what I do is

    Qt Code:
    1. QApplication::setStyle ( new QPlastiqueStyle() );
    2.  
    3. QPixmap pixmap("new/prefix1/Poker.jpg");
    4. QSplashScreen splash(pixmap);
    5.  
    6. QTimer splashTimer;
    7.  
    8. splashTimer.setSingleShot( true );
    9.  
    10. splashTimer.setInterval( 4000 ); //4 seconds
    11.  
    12. QObject::connect( &splashTimer, SIGNAL( timeOut() ), &splash, SLOT( close() ));
    13. splashTimer.start();
    14. splash.show();
    15.  
    16.  
    17. QApplication a(argc, argv);
    18.  
    19. MainWindow w;
    20. w.show();
    21. return a.exec();
    To copy to clipboard, switch view to plain text mode 

    though, I get the error:

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: error: QPlastiqueStyle: No such file

    So don't use QPlastiqueStyle.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: error: QPlastiqueStyle: No such file

    Quote Originally Posted by wysota View Post
    So don't use QPlastiqueStyle.
    So, what are the other alternatives? explain it plz.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: error: QPlastiqueStyle: No such file

    Why do you need an alternative?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: error: QPlastiqueStyle: No such file

    Quote Originally Posted by wysota View Post
    Why do you need an alternative?
    I simply loaded a window and set the background image. it pretty works like a QSplash now.
    Last edited by saman_artorious; 13th March 2013 at 15:35.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: error: QPlastiqueStyle: No such file

    What is it supposed to work like?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. labelAlignment and QPlastiqueStyle
    By aLiEnHeAd in forum Qt Programming
    Replies: 1
    Last Post: 29th March 2011, 16:07
  2. Replies: 3
    Last Post: 1st November 2010, 16:33
  3. Replies: 4
    Last Post: 9th May 2010, 16:18
  4. QPlastiqueStyle and QTreeView Scrollbar
    By yazwas in forum Qt Programming
    Replies: 0
    Last Post: 13th November 2009, 23:03
  5. Replies: 5
    Last Post: 1st April 2009, 12:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.