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 take printout of selected columns in qtablewidget?
Forum Updated to NodeBB v4.3 + New Features

How to take printout of selected columns in qtablewidget?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.8k 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.
  • D Offline
    D Offline
    devfeel
    wrote on last edited by
    #1

    I have a qtablewidget with 10 columns and 5000 rows...Its basically a network sniffer project... So i want to give the enduser a option to take printout of selected columns in qtablewidget?
    a)Is there any option to do so..HOw?
    b)Is there any option to get tablewidget in to excel format..?
    c) can i display tablewidget page wise ?
    Thank You

    1 Reply Last reply
    0
    • W Offline
      W Offline
      webmaster.skelton
      wrote on last edited by
      #2

      There is probably an easier way to do this. So fair warning. What you Could do is gather the selected information from the selected column, take that information and format it in html, then take that html string and put into a QWebView context. From there you can use QPrinter to pass off the information to the printer. Like i said, time consuming but effective.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        CreMindES
        wrote on last edited by
        #3

        It is possible to create an .xls document from Qt. Just search after it here ;)

        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