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. Load internet image into QWidget...
Forum Updated to NodeBB v4.3 + New Features

Load internet image into QWidget...

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

    Hello!

    i'm developing a webassembly site, and my file size is increasing so much, so i was thinking may be there is a way to link images directly from internet without packing them into wasm file.. ? I'm using QFrame to store image via stylesheet.

    Cheers

    sierdzioS 1 Reply Last reply
    0
    • 1 1XU7

      Hello!

      i'm developing a webassembly site, and my file size is increasing so much, so i was thinking may be there is a way to link images directly from internet without packing them into wasm file.. ? I'm using QFrame to store image via stylesheet.

      Cheers

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @1XU7 said in Load internet image into QWidget...:

      I'm using QFrame to store image via stylesheet.

      Why? Just use QLabel, you can set it to display image instead of text with this property: https://doc.qt.io/qt-6/qlabel.html#pixmap-prop

      Image can come from the network, sure, you'll just need to download it.

      (Z(:^

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved