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. void QWidget::setStyle(QStyle *style) and memory management.
Forum Updated to NodeBB v4.3 + New Features

void QWidget::setStyle(QStyle *style) and memory management.

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

    Hi,
    In C++ using Qt, when calling void QWidget::setStyle(QStyle *style),
    will the widget automatically delete the raw pointer to the QStyle when the widget is destroyed?

    Thanks

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      See the documentation: "Sets the widget's GUI style to style. The ownership of the style object is not transferred."

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • B Boltian has marked this topic as solved on

      • Login

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