Is there a preferred way to store widgets and layouts as private members in a window class ?

This page summarizes the projects mentioned and recommended in the original post on /r/QtFramework

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • tetris

  • Initially in my MainWindow class, I stored widgets and layouts as plain objects (see here), and I simply provided their addresses to functions like addWidget and addLayout (see here). However, it caused a double free error later when I set my central widget's layout (see here).

  • CppCoreGuidelines

    The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++

  • A subsidiary question I have is: is there Qt coding guidelines like there is for C++ Core guidelines ?

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts