Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • How to align multiple QCharts in a layout

    Unsolved
    3
    0 Votes
    3 Posts
    331 Views
    gfxxG
    @richferrara you can only use "legend" adding more or less spaces ....for more control you can find other project library for qt on github .... not mine and never use .... but see allow different nice customization ... use github search for find ... not remember the name.
  • Qt 6 Chart More than 1, are slowing down

    Unsolved
    1
    0 Votes
    1 Posts
    203 Views
    No one has replied
  • How can I set a specific dropArea for my drag in qml?

    Unsolved
    1
    0 Votes
    1 Posts
    177 Views
    No one has replied
  • How to get precompiled binaries for msvc2019_x86 for qt6.6

    Unsolved
    5
    0 Votes
    5 Posts
    882 Views
    A
    @Christian-Ehrlicher At first I was trying with the long path but during configuration got a warning about long path, Later on I made build destination directory's path short that is C:\xyz\qt6\ and it configured properly. Yes I need qtwebengine.
  • QComboBox newly crashes when calling `addItem()`

    Solved
    2
    0 Votes
    2 Posts
    321 Views
    Christian EhrlicherC
    https://codereview.qt-project.org/c/qt/qtbase/+/524037 - already two other bug reports for this. The bug reporting system has a search function like the forum.
  • QSqlQuery::value: not positioned on a valid record

    Solved
    32
    0 Votes
    32 Posts
    4k Views
    gfxxG
    @piervalli thanks never use chatgtp ... and thank for your interesting on these.
  • Charts with Widgets Gallery Missing?

    Unsolved
    7
    0 Votes
    7 Posts
    557 Views
    SGaistS
    @Dariusz which file did you open exactly ? Use the one from the folder of the example you want to build.
  • How Can I Draw Notification Head On "QTabBar"

    Unsolved qtabwi qtabba qt 6.6 paint event painter
    12
    0 Votes
    12 Posts
    2k Views
    M
    @Serafim-Rafail I think you go the wrong way. Simply add extra margins to the left by adding some spaces to the text of the tab and draw the number of notifs here.
  • QProcess sample

    Unsolved
    12
    0 Votes
    12 Posts
    2k Views
    JonBJ
    @JohnLocke As @jsulm says. But are you expecting anything you write to it to just appear as output in the terminal or to be interpreted as a command/input by the xterm?
  • QMessageBox is silent in Qt 6.4.1

    Unsolved
    2
    0 Votes
    2 Posts
    397 Views
    oblivioncthO
    @Yosof Well it took over a year, but I also noticed this recently and tracked it down: https://codereview.qt-project.org/c/qt/qtbase/+/519633 Keep an eye out for the fix in 6.5.4, 6.6.2, and 6.7.0.
  • setWindowIcon doesn't work after create shorcut qt6

    Unsolved
    6
    0 Votes
    6 Posts
    800 Views
    Christian EhrlicherC
    @Anton-Beresnev said in setWindowIcon doesn't work after create shorcut qt6: I hope QT developers can improve it by any way I don't understand what Qt has to do with windows shortcuts...
  • Erratic writes to QTcpSocket via QDataStream

    Solved qtcpsocket
    11
    0 Votes
    11 Posts
    2k Views
    vikramgV
    @Christian-Ehrlicher yes, this works perfectly. I am beginning to understand transactions as well, although it warrants further study. Thank you for the pointers, I appreciate it!
  • how to ammend QProcess welcome sample

    Unsolved
    3
    0 Votes
    3 Posts
    254 Views
    jsulmJ
    @JohnLocke Please add error handling to your code...
  • This topic is deleted!

    Unsolved
    4
    0 Votes
    4 Posts
    5 Views
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    4 Views
  • how to change my gui icon to custom

    Unsolved
    7
    0 Votes
    7 Posts
    925 Views
    Pl45m4P
    @JohnLocke said in how to change my gui icon to custom: I've installed two version of Qt, but still if open two different versions it open both with one icon and one shorcuts on favorites tab ubuntu The Qt version has nothing to do with whether you have QtCreator installed twice or not. You can use the same QtCreator with both Qt versions.
  • QMessageBox::question relative to parent...

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    C
    A parented QMessageBox is displayed centred on its parent by default. #include <QApplication> #include <QWidget> #include <QMessageBox> #include <QTimer> class Widget: public QWidget { Q_OBJECT public: Widget(QWidget *parent = nullptr): QWidget(parent) { } public slots: void doStuff() { QMessageBox *msgBox = new QMessageBox(this); msgBox->setWindowTitle("In the middle"); msgBox->setText("Delete record"); msgBox->setInformativeText("Are you sure?\n"); msgBox->setStandardButtons(QMessageBox::Yes); msgBox->addButton(QMessageBox::No); msgBox->setDefaultButton(QMessageBox::No); msgBox->exec(); } }; int main(int argc, char **argv) { QApplication app(argc, argv); Widget widget; widget.resize(640, 480); widget.show(); QTimer::singleShot(3000, &widget, &Widget::doStuff); return app.exec(); } #include "main.moc" [image: aa9c384d-aa9c-49a1-af36-ce5407bca332.png] Think you can do better positioning then try: // If you think you can do better than the default QTimer::singleShot(0, [=](){ QRect rctMsg(msgBox->geometry()); rctMsg.moveCenter(this->geometry().center()); msgBox->setGeometry(rctMsg); }); msgBox->exec();
  • QOpcUa: renew secure channel

    Unsolved
    5
    0 Votes
    5 Posts
    366 Views
    C
    @Mark81 , I haven't no ability to solve it , but I want to know more, because I also work in this way. My concern is " Connect many machine controllers (PLC.. ) with QOpcUa, to collect data from machine in cycling , if one machine is disconnected (switch off or restart ...), then restart again , Do OpcUaClient could receive one signal from this machine, then could trigger one procedure to create one new instance to connect it again. If not possible , I prefer to change to proposal "kepware collection". Thanks for your information !
  • qt excel

    Unsolved
    6
    0 Votes
    6 Posts
    412 Views
    SGaistS
    @bxrs hi, Are you thinking about something like pandas ?
  • QFileDialog fileSelected signal not sent when file selected via textbox interaction

    Unsolved
    4
    0 Votes
    4 Posts
    322 Views
    H
    @SGaist Ok we will work on that. Thanks.