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. SetPixmap doesn't work in linux but works in windows
Forum Updated to NodeBB v4.3 + New Features

SetPixmap doesn't work in linux but works in windows

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

    Hello Qt World!
    The following code doesn't work in Kubuntu 12.4, but works fine in Windows.
    @QPixmap pixmap("filename.png"));
    ui->label->setPixmap(pixmap);@

    It's executed in the main thread.
    Seems like this problems is more related to an OS configuration than the code.
    Hints?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      IIRC windows filesystem is case insensitive while Linux is case sensitive. Check the capitalization of the file.

      Make sure the working directory is indeed the one you assume it is when using relative pathes.

      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