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. TextEdit Alignment vertical/horizontal center error.
Forum Updated to NodeBB v4.3 + New Features

TextEdit Alignment vertical/horizontal center error.

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 653 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.
  • P Offline
    P Offline
    Pada_
    wrote on 10 Jun 2019, 07:39 last edited by
    #1

    Qt 5.4 I use Linux 64Bit.

    If you double click a cell in QTableVeiw, QTextEdit will appear in the corresponding place and connect the delegate so that it can be modified.

    Vertical / Horizontal I want to create a TextEdit in both directions, but it is only Horizontal.

    How do you get it to occur in the middle of TextEdit when the cursor grows?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 10 Jun 2019, 21:49 last edited by SGaist 6 Oct 2019, 21:50
      #2

      Hi,

      AFAIK, QTextEdit doesn't support vertical alignment of text. That's only available in the rendered cell.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply 11 Jun 2019, 03:30
      0
      • P Offline
        P Offline
        Pradeep P N
        wrote on 11 Jun 2019, 03:30 last edited by Pradeep P N 6 Nov 2019, 03:31
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • S SGaist
          10 Jun 2019, 21:49

          Hi,

          AFAIK, QTextEdit doesn't support vertical alignment of text. That's only available in the rendered cell.

          P Offline
          P Offline
          Pada_
          wrote on 11 Jun 2019, 03:30 last edited by
          #4

          @SGaist

          I want to be able to modify the cell by double-clicking on the cell.

          To do this, I show TextEdit, but I can not write because it is not vertically aligned.

          I tried to use QLabel and it did not appear when I double-clicked the blank. Is there a way to show it in vertical alignment?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 11 Jun 2019, 21:11 last edited by SGaist 6 Nov 2019, 21:12
            #5

            Are you using custom QStyledItemDelegate ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            P 1 Reply Last reply 13 Jun 2019, 01:46
            0
            • S SGaist
              11 Jun 2019, 21:11

              Are you using custom QStyledItemDelegate ?

              P Offline
              P Offline
              Pada_
              wrote on 13 Jun 2019, 01:46 last edited by
              #6

              @SGaist

              I am using your delegate.
              QTextEdit now appears when you double-click Cell, and you can create multiple lines.

              QLabel becomes Vertical Align, but if you double click cell without text, Edit Mode does not work.

              1 Reply Last reply
              0

              1/6

              10 Jun 2019, 07:39

              • Login

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