Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Help regarding QRemoteObject.

    Solved
    28
    0 Votes
    28 Posts
    3k Views
    jsulmJ
    @Pradson said in Help regarding QRemoteObject.: Would you like to add any point from your end otherwise I will have to close this topic. I have nothing to add to this. I'm curious: why do you need Windows API in a web application?
  • Antialiasing

    Unsolved
    2
    0 Votes
    2 Posts
    167 Views
    M
    As clearly stated in the doc, use QFont::NoAntialias instead: someFont.setStyleStrategy(QFont::NoAntialias);
  • QComboBox binding and returning selected value

    Solved
    8
    0 Votes
    8 Posts
    3k Views
    JonBJ
    @Karoluss96 said in QComboBox binding and returning selected value: What is cbParent? A QComboBox created in Designer.
  • Relation between size policies, setting fixed size, and setting minimum size of widgets

    Unsolved
    1
    0 Votes
    1 Posts
    369 Views
    No one has replied
  • QT Timer issue

    Solved
    4
    0 Votes
    4 Posts
    266 Views
    V
    Hi Thank you everyone it was a issue with the camera and how i was capturing the images, i wasnt doing it properly so the camera kept disconnecting Thank you
  • Any tricks to increase QtChart responsiveness?

    Unsolved qtchart lineseries plot responsiveness
    9
    0 Votes
    9 Posts
    3k Views
    S
    @CJha try to useOpenGL for series, for qml i use series.useOpenGL = true
  • Back to basic learning

    Unsolved
    2
    0 Votes
    2 Posts
    179 Views
    A
    @AnneRanch I need to rewrite this post. This is an example of how Qt builds class constructor which includes "form" ( I am not so sure naming class and form same name....). Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { ui->setupUi(this); } This is how the actual class definition looks QT_BEGIN_NAMESPACE namespace Ui { class Widget; } QT_END_NAMESPACE class Widget : public QWidget { Q_OBJECT public: Widget(QWidget *parent = nullptr); ~Widget(); private: Ui::Widget *ui; }; #endif // WIDGET_H Here is how my "form-less" class definition partially looks : class CCC_MdiChild : public QTextEdit { Q_OBJECT public: CCC_MdiChild(); etc etc and its constructor CCC_MdiChild::CCC_MdiChild() { setAttribute(Qt::WA_DeleteOnClose); isUntitled = true; } I have no issues adding "form.h" to the project....using QDesigner and QCreator I need help adding "form.h" to the actual C++ code - class definition and to the default constructor. Plain C++ - anybody ? I'll keep this original post for a spell... I have decided to add "form" to the project I got as far as this and I have no idea what class is missing in the code [image: af8cfe10-51db-4387-8031-76d97d0d399d.png] I got stomped by adding " ui_form" header, and recall discussing that long time ago. I guess this time it is "just the way it is "
  • Key board events in c++ for qt quick application

    Unsolved
    2
    0 Votes
    2 Posts
    159 Views
    SGaistS
    Hi, Sounds like you would need an event filter.
  • QT creator auto resizes my grid layouts

    Unsolved
    4
    0 Votes
    4 Posts
    225 Views
    JonBJ
    @freemanl144 I have no idea, but I am saying i cannot/should not have anything to do with running the pyside2-uic command.
  • QTableView and QSortFilterProxyModel

    Solved
    9
    0 Votes
    9 Posts
    643 Views
    Seb TurS
    @SPlatten What I do is I make sure to cast to numbers and no nulls in the query eg. SELECT CAST(IFNULL(kompletacja,0) AS DECIMAL(10,5)) as 'kompletacja' FROM TABLE
  • Do I need to use a QWinHost object

    Unsolved
    8
    0 Votes
    8 Posts
    800 Views
    PerdrixP
    The QMfcApp is created in the CWinApp::InitInstance() mf as the first thing it does. QMfcApp::instance(this); the program has its own _tWinMain() that invokes AfxWinInit() to start MFC, and then runs InitInstance, and then invokes the main function of the program as a modal dialog using CDialog::DoModal(). It would appear that the Run() mf which contains: int result = QMfcApp::run(this); delete qApp; return result; is never actually invoked! No - I didn't write this. Perhaps not quite the normal CWinApp application. I'm not sure where to go from here!
  • What is the difference between QStyledItem and QItemDelegate?

    Solved
    5
    0 Votes
    5 Posts
    772 Views
    GaoboG
    Thanks; I already know what you mean ; I'm just interested in this, and i read many blogs that introduce the difference between QStyledItemDelegate and QItemDelegate, it just write "use current style". The most important reason is that I have been relatively idle recently,hahaha.😂
  • How to store Audio Input in array?

    Solved
    10
    0 Votes
    10 Posts
    972 Views
    JonBJ
    @kayakaan02 said in How to store Audio Input in array?: The QByteArray that readAll() returns is empty That is not possible provided you call readAll() in the slot for readyRead(), just as I see you have marked as the correct answer from @jsulm above..... If you call readAll() anywhere else it could be empty. Your code cannot be the same as the example you quote since that does not use readAll().
  • MATLAB exe calling in qt cpp

    Unsolved
    9
    0 Votes
    9 Posts
    550 Views
    H
    Thank u for the support the problem is because of some internal admin permissions because of that qt was not able access the dll's.
  • 0 Votes
    4 Posts
    2k Views
    K
    configure.bat ... -D _WIN64
  • QToolBar not available from Design UI

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    M
    @lukutis222 Don't use QWidget as top level widget. Always use QMainWindow for main application window and document windows. Otherwise use QDialogs.
  • Should git ignore .pyproject file?

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    D
    @mchinand Thanks that was a good advice. I looked it up, this issue was already created, but the priority is "somewhat important".. so probably will remain a bug unless more people complain https://bugreports.qt.io/browse/QTCREATORBUG-22492
  • canReadLine() working with /n and /r

    Unsolved
    14
    0 Votes
    14 Posts
    588 Views
    L
    Makes sense. Thank you very much for clarifying. I read a little bit about printf in the ESP32 documentation (external device that I have connected) https://esp32.com/viewtopic.php?t=3447
  • Converting string to hex before inserting into QTextEdit

    Unsolved
    4
    0 Votes
    4 Posts
    490 Views
    J.HilkJ
    @lukutis222 said in Converting string to hex before inserting into QTextEdit: Is this an error in QT documentation? It talks about toHex but then in the example it uses fromHex no, not really. The example uses fromHex in the first line to fill the data of the QByteArray, which is internally a char array. QByteArray does currently not support initialiser list construction, so the documentation uses the fromHex(string) static function to create and fill the QByteArray in one line
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    26 Views