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. [Solved] QPixmap: It is not safe to use pixmaps outside the GUI thread!
Forum Updated to NodeBB v4.3 + New Features

[Solved] QPixmap: It is not safe to use pixmaps outside the GUI thread!

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 8.6k 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.
  • D Offline
    D Offline
    dcbasso
    wrote on last edited by
    #1

    I'm not using QPixmap on my code!
    What I can do?

    This error is "ignored" by Gnome but on KDE the applications stops!

    See error on KDE:
    @
    QPixmap: It is not safe to use pixmaps outside the GUI thread
    InoveBEVSAT: xcb_io.c:221: poll_for_event: Assertion `(((long) (event_sequence) - (long) (dpy->request)) <= 0)' failed.
    Aborted
    @

    The unique code that use something "different" is this code:
    @
    DialogSplashScreen::DialogSplashScreen(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DialogSplashScreen)
    {
    ui->setupUi(this);
    QGraphicsScene scene;
    QLabel *gif_anim = ui->icon;
    QMovie *movie = new QMovie(":/imagens/64/loading_1.gif");
    gif_anim->setMovie(movie);
    movie->start();
    scene.addWidget(gif_anim);
    setMaximumWidth( width() );
    setMaximumHeight( height() );
    setWindowFlags( ((windowFlags() | Qt::CustomizeWindowHint) & ~Qt::WindowCloseButtonHint) );
    }
    @

    I not sure if there is the problem... But I need to fix it and I dont have idea for where look for this problem!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dcbasso
      wrote on last edited by
      #2

      I fix it.. but I not understand how a Simple Dialog with some message text can make this errors appears.
      Well, I remove the menssage errors and just add to log... it's better for user.

      Thanks all.

      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