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. QWidget Background Problem
Qt 6.11 is out! See what's new in the release blog

QWidget Background Problem

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 621 Views
  • 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.
  • jondoeJ Offline
    jondoeJ Offline
    jondoe
    wrote on last edited by jondoe
    #1

    Hello,
    I have QWidget and I using this QWidget like this.

    This is just picture. I using stylesheet for do this background but I need to do get this background from url. I mean I want change this background from url.
    For example

    sitename.com/discord.png

    I want get this background from this url. How can I do this ?
    If I cant do this with qwidget can you say me please other ways.

    Thank you.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
      wrote on last edited by
      #2

      If you are using the QWidgets, you have no direct way of doing it. You need to download the image using the QNetworkAccessManager and us it. If you want use QML, QImage has option to load the image directly from URL.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      https://www.pthinks.com

      jondoeJ 1 Reply Last reply
      0
      • dheerendraD dheerendra

        If you are using the QWidgets, you have no direct way of doing it. You need to download the image using the QNetworkAccessManager and us it. If you want use QML, QImage has option to load the image directly from URL.

        jondoeJ Offline
        jondoeJ Offline
        jondoe
        wrote on last edited by
        #3

        @dheerendra

        How I can do this with qimage sir ?

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
          wrote on last edited by
          #4

          Have you seen this post ?

          Dheerendra
          @Community Service
          Certified Qt Specialist
          https://www.pthinks.com

          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