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. Resize a table in QTextEdit with mouse?

Resize a table in QTextEdit with mouse?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 363 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.
  • T Offline
    T Offline
    ThanksForTheHelp
    wrote on last edited by
    #1

    How do you resize a table in QTextEdit using your mouse? Some text editors have the ability to create tables and when you hover over one side of the table, you're able to stretch out or reduce the width/heigh of the entire table. I insert a table using the following method

    void MainWindow::insert_table() {
        QTextCursor cursor = textEdit->textCursor();
    
        QTextTableFormat format;
        format.setBorder(1);
        format.setCellPadding(10);
        format.setCellSpacing(0);
    
        QTextTable *table = cursor.insertTable(5, 5, format);
    }
    

    but the table in not resizable inside the textEdit using the mouse! Is there a way to do this?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      ThanksForTheHelp
      wrote on last edited by
      #2

      I am guessing this is a really difficult thing to do, since nobody is answering. Does anybody know where I can get in contact with a professional Qt C++ programmer or some chat group / chat where I might find the answer?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Please allow at least 24 hours before bumping you own thread. People answering on this forum do it on their own time and might not live in the same timezone as you.

        If you would like to have more live interaction you can use the #qt irc channel.

        You have the other channels in this wiki article.

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

        1 Reply Last reply
        1

        • Login

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