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. How to share "layout" ?
Forum Updated to NodeBB v4.3 + New Features

How to share "layout" ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 169 Views 1 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    This is off-shoot of another post.

    I am using - from Qt example "terminal" class "Console" - which is derived from QPlainTextEdit.

    It does a good job managing serial data, so let's not fix it - it ain't broke.

    I would like to add another monitoring tasks to the class and display them in SAME object window.
    '
    This class QPlainTextEdit has NO ui file, none !

    I just cannot replace non-existent "layout" as I have successfully done in another object.

    Can somebody (seriously ) suggest how to remedy this ?

    Console::Console(QWidget *parent) :
        QPlainTextEdit(parent)
    {
    
    Christian EhrlicherC 1 Reply Last reply
    0
    • A Anonymous_Banned275

      This is off-shoot of another post.

      I am using - from Qt example "terminal" class "Console" - which is derived from QPlainTextEdit.

      It does a good job managing serial data, so let's not fix it - it ain't broke.

      I would like to add another monitoring tasks to the class and display them in SAME object window.
      '
      This class QPlainTextEdit has NO ui file, none !

      I just cannot replace non-existent "layout" as I have successfully done in another object.

      Can somebody (seriously ) suggest how to remedy this ?

      Console::Console(QWidget *parent) :
          QPlainTextEdit(parent)
      {
      
      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      @AnneRanch said in How to share "layout" ?:

      I just cannot replace non-existent "layout"

      As already written now three times from various people out here.

      Take a QWidget. Add a layout, add your Console and all the other widgets to this layout and you're done.

      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
      3

      • Login

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