Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. background
    Log in to post

    • UNSOLVED WebEngine - How to draw an animated SVG above a transparent web view?
      QtWebEngine • webengine svg background transparency • • jeanmilost  

      1
      1
      Votes
      1
      Posts
      96
      Views

      No one has replied

    • UNSOLVED Is it possible to view background color or other widgets behind QGLWidget by using transparent GL background (glClearColor)?
      General and Desktop • background transparency qglwidget alpha • • thehans  

      1
      0
      Votes
      1
      Posts
      89
      Views

      No one has replied

    • SOLVED change disabled background color QCheckbox?
      General and Desktop • background color qcheckbox • • pauledd  

      4
      0
      Votes
      4
      Posts
      368
      Views

      @pauledd You mean the background color "overspill" to right & bottom? I don't know but you might play with border-... or padding-... (I'm thinking margin- does not use background color, but I might be wrong) having a width/transparency/grey....
    • SOLVED Make QGraphicsItem cover items under it
      General and Desktop • qgraphicsscene qgraphicsitem background graphicsview • • mbise1993  

      6
      0
      Votes
      6
      Posts
      382
      Views

      I found the problem. I was drawing the beats before the lines, so the lines took precedent over the beats since they are siblings. The solution was to either draw the beats last or set the Z value on the beat, not the note.
    • UNSOLVED How to keep my app runs in background
      Mobile and Embedded • android ios background service • • tansgumus  

      2
      0
      Votes
      2
      Posts
      1557
      Views

      Hi @tansgumus , Apple is very conservative in allowing developers long term background threats/events. Taken from the Apple docu: Implementing Long-Running Background Tasks For tasks that require more execution time to implement, you must request specific permissions to run them in the background without their being suspended. In iOS, only specific app types are allowed to run in the background: Apps that play audible content to the user while in the background, such as a music player app Apps that keep users informed of their location at all times, such as a navigation app Apps that support Voice over Internet Protocol (VoIP) Newsstand apps that need to download and process new content Apps that receive regular update from external accessories Apps that implement these services must declare the services they support and use system frameworks to implement the relevant aspects of those services. Declaring the services lets the system know which services you use, but in some cases it is the system frameworks that actually prevent your application from being suspended. That said, a navigation app should fall in this category. But as it is, you're bound to do it in OBjective-C but its relative easy to include ObjectiveC code in Qt.
    • SOLVED Standard Windows background color in QBackingStore application
      General and Desktop • background color qguiapplication qbackingstore • • Maarten Verhage  

      6
      0
      Votes
      6
      Posts
      1451
      Views

      Yeah, that looks ok. I wasn't suggesting to remove the flush permanently, just to see that the system background is drawing when you don't flush. Btw. Keep in mind that the system color can change at any time so if you want to be 100% correct you should either get it every time you render or handle the WM_SYSCOLORCHANGE and WM_THEMECHANGED messages.
    • SOLVED Button backgound non-existent property!
      QML and Qt Quick • button background color qt quick 2.0 • • tansgumus  

      6
      0
      Votes
      6
      Posts
      2478
      Views

      @tansgumus said in Button backgound non-existent property!: Component.onCompleted: { // WORKS! // button.background.color = "red" // WRONG background = Rectangle { color: "red" } } Because Component.onCompleted is a javascript function and you can use only js syntax inside it. Rectangle { color: "red" } is QML specific syntax, js doesn't understand it. You can create a component dynamically (see the QML docs) by giving the component as a string to Qt.createQmlObject(). If you use button.background.color = "red" in Component.onCompleted it retains all other properties of the backround; I have found it to be a convenient way to change only one or two properties without messing others. Using other approaches, i.e. defining the whole component either dynamically or declaratively, overwrites everything which may or may not be desirable.
    • UNSOLVED How to create meshGradient (2-dimensional gradient)?
      General and Desktop • qt5 background scene gradient • • flart  

      1
      0
      Votes
      1
      Posts
      734
      Views

      No one has replied

    • UNSOLVED No (or Transparent) Background for QOpenGLWidget
      General and Desktop • opengl qopenglwidget background transparent • • ddyn  

      1
      0
      Votes
      1
      Posts
      1444
      Views

      No one has replied

    • SOLVED Problem with QTreeWidget Stylesheet
      General and Desktop • stylesheet qtreewidget background transparent selected item • • QT-static-prgm  

      14
      0
      Votes
      14
      Posts
      12986
      Views

      I was always searching at the wrong place. The blue hue wasn't a problem of the style, it was a problem of the icon. Here is the solution: for all icons m_clientIcon.normal.addFile("plugins\\qtTsOverlay\\client.png"); add this m_clientIcon.normal.addFile("plugins\\qtTsOverlay\\client.png", QSize(), QIcon::Selected);
    • UNSOLVED Stylesheet problem with background (very basic)
      General and Desktop • stylesheet qt 5.4 background • • MarceloGomez  

      4
      0
      Votes
      4
      Posts
      1346
      Views

      @MarceloGomez The About code works for me using setStyleSheet . setStyleSheet("QMainWindow { background-image: url(:/icon/Icon.jpg); }");
    • SOLVED QGraphicsView cache problem
      General and Desktop • qgraphicsview background graphics • • 0...-5  

      7
      0
      Votes
      7
      Posts
      2449
      Views

      @raven-worx I mean drawing part is quite simple, but there is a stuff QGraphicsPathItem doesn't provide, so I had to implement my own class. I will make some experiments with QGraphicsPathItem later, but for now viewportUpdateMode solves an issue.
    • SOLVED Set tableWidget item background color 60% red and 40% white
      General and Desktop • background color draw • • qDebug  

      3
      0
      Votes
      3
      Posts
      977
      Views

      Thank you! Just perfect! :D
    • UNSOLVED Music playback in background on Android
      Mobile and Embedded • android background service music player • • vlada  

      11
      0
      Votes
      11
      Posts
      2613
      Views

      @vlada Android Visualizer class. But it probably has bug in API level 26.
    • SOLVED How to set a moving background (images) into my QWidget
      General and Desktop • qwidget qgraphicsscene background moving • • Ganou_R  

      5
      0
      Votes
      5
      Posts
      3909
      Views

      @VRonin Hi Oh yeah, I didn't think about a .gif ! That will spare me the complication of trying to find a way to make the scene recurrent. Thank you !
    • SOLVED GIF image as background for QListWidget
      General and Desktop • qlistwidget background gif • • Rohith  

      6
      0
      Votes
      6
      Posts
      3887
      Views

      I have added these few lines to resemble GIF image as background for QListWidget QPixmap pix = QPixmap::grabWidget(ui->label,20,30,741,481); pix.fill(Qt::transparent); QPalette p; p.setBrush(QPalette::Base,pix); p.base();
    • UNSOLVED Make selection background have similar background to item being selected
      General and Desktop • stylesheet selection background color • • Lobstw  

      10
      0
      Votes
      10
      Posts
      3952
      Views

      @SGaist Argh everything's too confusing. I think I'll just leave it for now haha
    • SOLVED QFrame::setBackgroundRole not working?
      General and Desktop • background color qpalette • • applefier  

      2
      0
      Votes
      2
      Posts
      1280
      Views

      Ok, I just realized that I was asking for QPalette::Window of the widget itself, not the application. Nothing wrong with being stupid.
    • QGLWidget/QOpenGLWidget with transparent background
      General and Desktop • opengl qopenglwidget background transparency qglwidget transparent overlay alpha translucent see throught • • FredeHo  

      1
      0
      Votes
      1
      Posts
      1453
      Views

      No one has replied

    • fluidlauncher example: event management for forked process
      Mobile and Embedded • qt5.5 event background i.mx6 fluidlauncher • • Gary Bisson  

      1
      0
      Votes
      1
      Posts
      531
      Views

      No one has replied

    • SOLVED Widgets showing the whole background image of the underlying widget
      General and Desktop • widget background image display • • VinodV  

      3
      0
      Votes
      3
      Posts
      1981
      Views

      That solved it. Thank you very much!
    • Android - Set android.app.background_running to True
      Mobile and Embedded • android qt quick background • • Orby  

      2
      0
      Votes
      2
      Posts
      1004
      Views

      @Orby I finally figured this out. Go into project -> android build options -> Details on build android APK Click create templates, now you can edit that AndroidManifest.xml and set the option to true.
    • ComboBoxStyle trouble changing style
      QML and Qt Quick • combobox style background • • Pheelbert  

      2
      0
      Votes
      2
      Posts
      878
      Views

      Hi @Pheelbert, if you meant changing the background of dropdown list then you will need to do it in __dropDownStyle private property for now. eg: inside ComboBoxStyle __dropDownStyle: MenuStyle { itemDelegate.label: Text { width:200 height: 80 color: "blue" text: styleData.text } itemDelegate.background: Rectangle { color: styleData.selected ? "darkGray" : "transparent" } } And to add an arrow you can just use an Image inside the background: Rectangle { component.
    • background picture won't apply to main widget
      General and Desktop • stylesheet widget window background main picture • • Arty.McLabin  

      4
      0
      Votes
      4
      Posts
      1225
      Views

      @Chris-Kawa, you got me wrong i guess, the problem is not stylesheet inheritance, it's about the target widget itself NOT getting the stylesheet, instead that only passing style to children, naming him doesn't affect the result too.