Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • How can I take the contents of a docx file and put them in TextEdit?

    Unsolved
    5
    0 Votes
    5 Posts
    466 Views
    V
    @JonB Thank you very much
  • Always get "failed to get textures for frame true" error for media

    Unsolved
    3
    0 Votes
    3 Posts
    854 Views
    T
    @Chris-Kawa Qt 6.5.0 for windows. I will try to download 6.5.1 and test again. I alredy opened a ticket long time ago but they still haven't fixed it EDIT: Compiled with 6.5.1 the problem is still present. I see taht is due to NV foramt being used by multimedia class
  • Setting the background color of a QFrame object ignored

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    G
    @JonB I was lucky, it stopped working in Qt Creator as well 🤣 . And having a minimum of more experience I went to the bottom. Apparently in Qt Creator it worked by mistake, it was enough to mess around for a minimum and it didn't work anymore. The solution framePanel->setAutoFillBackground( true );
  • This topic is deleted!

    Unsolved
    27
    0 Votes
    27 Posts
    405 Views
  • QTextBrowser and <hr color=

    Solved
    4
    0 Votes
    4 Posts
    630 Views
    PerdrixP
    @Chris-Kawa Kudos!
  • QGraphicsScene::drawBackground lines thinner than coord units are not drawn

    Unsolved
    1
    0 Votes
    1 Posts
    179 Views
    No one has replied
  • QWebSocketServer and QThread

    Solved
    3
    0 Votes
    3 Posts
    375 Views
    R
    @Christian-Ehrlicher thank you for your reply, it will solve my problem there. distribution into separate streams, it is necessary because when you download a large stream of binary data through a socket, everyone else who has their own sockets does not receive a response, they wait until the data is loaded
  • Serial data throughput via QBluetooth issues

    Unsolved
    4
    0 Votes
    4 Posts
    450 Views
    M
    @ocgltd Not exactly. I tried 5 Bluetooth adapters of which 2 worked as expected (no dropped packets) using rfcomm. IIRC the QBluetooth connection worked correctly only if the application doesn't scan for the device, but instead uses a hard-coded/argument provided MAC address. I haven't looked into the issue since then so I can't verify it on newer Qt versions.
  • Converting a QByteArray in Hexa format into an Int

    Unsolved
    23
    0 Votes
    23 Posts
    3k Views
    Paul ColbyP
    Just use the Qt endian functions every time, since they evaluate to a no-op (ie static_cast) when the source and destination match anyway. Eg: const QByteArray mydata = QByteArray::fromHex("00004A9E"); const quint32 mydataInteger = qFromBigEndian<quint32>(mydata); qDebug() << mydata; qDebug() << mydataInteger; Outputs: "\x00\x00J\x9E" 19102 Cheers.
  • eventFilter run many times

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    G
    Pressing any key within a child widget will return in 3 events QEvent::ShortcutOverride QEvent::KeyPress QEvent::KeyRelease We would handle the event of interest only if condition below is met if ( keyEvent->type() == QEvent::KeyPress) { }
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    13 Views
    No one has replied
  • what to use instead QThread::sleep ?

    Unsolved
    3
    0 Votes
    3 Posts
    512 Views
    Kent-DorfmanK
    The thing to keep in mind is that in event driven programming model the concept of explicit sleep is an "anti-pattern?" since by definition the system should do things only when events are fired. IOW, the need for explicit sleep should be extremely rare.
  • 0 Votes
    10 Posts
    924 Views
    C
    @JoeCFD Someone on SO suggested to set horizontal size policy of the button to Ignored, and it worked. Problem solved. Thanks for your time and input!
  • how to find how many data points can be shown on qcustom plot based on ram ?

    Unsolved
    2
    0 Votes
    2 Posts
    214 Views
    JonBJ
    @Qt-embedded-developer That would depend on many factors, not sure somebody else is going to come up with answer for you. I thought we had discussed this before, maybe somebody else. Maybe you don't need 4 points per second for 6 hours? You can also "prune" your data, e.g. average out some points, or keep detailed points on external storage and still allow user to zoom in. No point showing many more points than user can see. Having said that, 4 per second for 6 hours is only 86k points. Not likely to challenge 4GB ram one would think. because when i move 4 hour data graph it starts to hang my qt application. "Move"? If you mean some sort of dragging around and 86k points have to replot that could be laggy.
  • Add more information to the chart

    Unsolved
    2
    0 Votes
    2 Posts
    218 Views
    JoeCFDJ
    @ChiaoHuang // Create a QGraphicsTextItem for the text QGraphicsTextItem* textItem = new QGraphicsTextItem("Max Value"); textItem->setPos(2, 18); // Set the position of the text // Add the text item to the chart chart->scene()->addItem(textItem); Customize the text appearance if desired: // Set the font size and color of the text item QFont font = textItem->font(); font.setPointSize(12); textItem->setFont(font); textItem->setDefaultTextColor(Qt::red);
  • Does cellChanged from QTableWidget trigger on row count change?

    Unsolved
    1
    0 Votes
    1 Posts
    140 Views
    No one has replied
  • Sort QTreeView on multiple columns

    Solved
    6
    0 Votes
    6 Posts
    929 Views
    A
    @JonB Thank you. I have done by sorting the data while filling the model which is meeting my requirement.
  • CMake configuration of plugin for SQL Driver

    Solved
    3
    0 Votes
    3 Posts
    618 Views
    Hans DijkemaH
    @Hans-Dijkema Tested it with my application and it works again as expected.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • SVG IMAGE LOAD ERROR

    Unsolved
    6
    0 Votes
    6 Posts
    725 Views
    JonBJ
    @Cassandre-Neufville But @Christian-Ehrlicher has pointed you to the documentation saying this is not supported in Qt's SVG, it is limited. I don't know whether it might work in QtWebEngine, which is the Chromium browser engine. That might show SVG.