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 add multiline text to Qlabel
Forum Updated to NodeBB v4.3 + New Features

How to add multiline text to Qlabel

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 6.3k 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
    Bharth
    wrote on last edited by
    #1

    hi guys,,

    im doing chat application,,, if type message i n edittext and press send button is showing in Qlistwidget
    in that i gave maximumwidth to cell,,,if message reches to maximum size it should show in next line now its showing in same line

    please help me

    thanks in advance

    jsulmJ 1 Reply Last reply
    0
    • B Bharth

      hi guys,,

      im doing chat application,,, if type message i n edittext and press send button is showing in Qlistwidget
      in that i gave maximumwidth to cell,,,if message reches to maximum size it should show in next line now its showing in same line

      please help me

      thanks in advance

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Bharth I guess you disabled word wrapping in QLabel you're inserting as I suggested in your other thread (https://forum.qt.io/topic/100209/how-to-add-space-to-qlabel) is that correct? Do you insert QLabel into QListWidget or do you insert strings directly into QListWidget?
      You can activate word wrap in QListWidget and also in QLabel.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • B Offline
        B Offline
        Bharth
        wrote on last edited by
        #3

        im inserting qlabel to qlistwidget,,if enable word wrap in both space taking new line

        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