Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Why isn't QLayout a QWidget?
Forum Updated to NodeBB v4.3 + New Features

Why isn't QLayout a QWidget?

Scheduled Pinned Locked Moved Solved Brainstorm
22 Posts 6 Posters 5.4k Views 5 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.
  • K Offline
    K Offline
    Konstantin Tokarev
    wrote on last edited by
    #21

    @JonB said in Why isn't QLayout a QWidget?:

    In HTML I layout with DIVs and they are HTML elements, just like everything else

    Because HTML for a long time didn't have any support of author-defined layouts. User agent, a.k.a. "layout engine", was supposed to represent data on screen in the most appropriate way. Nowadays, we have CSS flex and grid layouts, so author can create desired layout without non-sematic HTML elements like <div> (or <table>:)

    JonBJ 1 Reply Last reply
    1
    • K Konstantin Tokarev

      @JonB said in Why isn't QLayout a QWidget?:

      In HTML I layout with DIVs and they are HTML elements, just like everything else

      Because HTML for a long time didn't have any support of author-defined layouts. User agent, a.k.a. "layout engine", was supposed to represent data on screen in the most appropriate way. Nowadays, we have CSS flex and grid layouts, so author can create desired layout without non-sematic HTML elements like <div> (or <table>:)

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #22

      @Konstantin-Tokarev
      Crikey, are we not supposed to use DIVs for layout any more? I'm only just getting off TABLEs....

      1 Reply Last reply
      0

      • Login

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