Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Tesseract in QT Ubuntu

    Unsolved
    2
    0 Votes
    2 Posts
    199 Views
    Pablo J. RoginaP
    @Kartashow it's not a good issue description... please state Qt version, OS, Tesseract version, post your .pro file, and more information about your environment and how you're trying to do the integration. Are you following any tutorial/guide to do the integration? if so please share the reference
  • QSqlTableModel::select() override

    Solved
    9
    0 Votes
    9 Posts
    680 Views
    I
    @JonB QSqlTableModel::selectionChanged() does not exist. It is just a signal which I implemented. That is the reason why I wanted to override the QSqlTableModel::select() slot. Sorry for the confusion. mysqltablemodelreadonl.h class MySqlTableModelReadOnly : public QSqlTableModel { Q_OBJECT public: explicit MySqlTableModelReadOnly(QObject *parent = nullptr); private: signals: void selectionChanged(); public slots: bool select() override; }; mysqltablemodelreadonl.cpp MySqlTableModelReadOnly::MySqlTableModelReadOnly(QObject *parent) : QSqlTableModel(parent) { } bool MySqlTableModelReadOnly::select() { bool result = QSqlTableModel::select(); emit this->selectionChanged(); return result; }
  • Getting started with ixxat CAN driver

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    G
    Hi, I implemented a simple driver for the missing PLUGIN for IXXAT USB adapter. It is freely available here: https://github.com/gmarescotti/ixxatcan
  • Edit a QString

    Unsolved
    5
    0 Votes
    5 Posts
    566 Views
    Pablo J. RoginaP
    @QtFranchise so is your issue solved? please don't forget to mark your post as such!
  • How to get fit size ??

    Unsolved
    1
    0 Votes
    1 Posts
    223 Views
    No one has replied
  • 0 Votes
    8 Posts
    3k Views
    H
    @SnuggleKat said in [Tobii Eye Tracking] stuck at "non-standard syntax; use '&' to create a pointer to member": void gaze_point_callback(tobii_gaze_point_t const* gaze_point, void* user_data); 头文件 里 修改为 static void gaze_point_callback(tobii_gaze_point_t const* gaze_point, void* user_data);
  • Cpu usage in windows

    Unsolved
    2
    0 Votes
    2 Posts
    262 Views
    sierdzioS
    Qt does not provide such API. Look elsewhere (for example on StackOverflow).
  • change icon of pushbutton

    Solved
    12
    0 Votes
    12 Posts
    15k Views
    BramhaB
    @abhay Please can you share the solution.
  • How i can use Report Functionality in Qt As Like Microsoft Report Viewer

    Solved
    4
    0 Votes
    4 Posts
    387 Views
    Ketan__Patel__0011K
    hello Friends i am try to generate report using QTRPT i am finished allmost work but Data dosen't display in report my code is : void Report_Time::on_btn_generate_clicked() { QSqlQuery query(db); query.prepare("SELECT * FROM test"); if(!query.exec()) { qDebug()<<"Error in Query"<<endl; } else { QtRPT *report = new QtRPT(this); while(query.next()) { qDebug()<<query.value(0).toString()<<endl; qDebug()<<query.value(1).toString()<<endl; qDebug()<<query.value(2).toString()<<endl; report->loadReport(":/new/TestReport.xml"); connect(report,&QtRPT::setValue,[&](const int recNo, const QString paramName, QVariant &paramValue, const int reportPage) { (void) reportPage; if(paramName == "id") { paramValue=(((recNo)),query.value(0).toString()); qDebug()<<paramValue<<endl; } if(paramName == "name") { paramValue=(((recNo)),query.value(1).toString()); qDebug()<<paramValue<<endl; } if(paramName == "city") { paramValue=(((recNo)),query.value(2).toString()); qDebug()<<paramValue<<endl; } }); } report->printExec(); } } My Output Is : [image: 8b6908c4-efc3-426d-9707-523109bf0b0d.png]
  • Unexpected QAbstractSocket::RemoteHostClosedError

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    H
    Update. I think I found the source of the problem. As I said, the logs of the first client and second client do not correspond. Apparently, the first client receives the datagrams, that were meant to be sent to the second client. All these are the first client's logs. // the 4 logs below are ok. DEBUG:root:Address: <PySide2.QtNetwork.QHostAddress("192.168.56.255") at 0x0000020A65ADDC08> DEBUG:root:Processing datagrams... DEBUG:root:b'ws://192.168.56.1:54545' DEBUG:root:True // the logs below should have been printed by the second client. But in fact, they are also printed by the first one. This means, that Client1 processes the datagrams that were meant to be received by Client2. DEBUG:root:Web client connected to server DEBUG:root:Processing datagrams... DEBUG:root:b'ws://192.168.56.1:54545' DEBUG:root:True DEBUG:root:Web client connected to server
  • C++ constant static vector instantiation

    Solved
    15
    0 Votes
    15 Posts
    1k Views
    faiszalkhanF
    @jsulm @SGaist @Christian-Ehrlicher @Kent-Dorfman Thank you very much.
  • QT Python Development

    Unsolved
    2
    0 Votes
    2 Posts
    322 Views
    jsulmJ
    @Stevendragoes said in QT Python Development: qimage = QtGui.QImage(rgbImage.data, rgbImage.shape[1], rgbImage.QtGui.QImage.Format_RGB888) Shouldn't it be qimage = QtGui.QImage(rgbImage.data, rgbImage.shape[1], QtGui.QImage.Format_RGB888) ?
  • How to set code hints for qtcreator ?

    Solved
    4
    0 Votes
    4 Posts
    473 Views
    jsulmJ
    @laine said in How to set code hints for qtcreator ?: I am using qtcreator 5.10.2 No, you don't. There is no such QtCreator version. That is Qt version.
  • QFuture destruction before thread completion

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    L
    For anyone reading this in the future: as far as I can tell there is no problem with assigning a fresh QFuture to one that is already running. It seems to behave as expected, letting the disconnected thread complete in the background and eventually cleaning it up. Do take this with a grain of salt as if I were 100% about it I wouldn't be asking on a forum.
  • Global menu functionality

    Unsolved global-menu linux widgets gui
    6
    0 Votes
    6 Posts
    2k Views
    P
    @SGaist It's not enabled by default but it's available as a widget that you can place on the panel. Please tell me if I'm wrong here: Each application is given an area in the framebuffer to do its drawings and WM place additional window borders , shadows , effects and some handles to control windows. But I wonder how can WM separate toolbars from the window ? Are toolbars placed on some queue or special buffer which is visible to WM and DE(to use with the global menu widget)?
  • How to load a Qt3D scene graph from a QML file ?

    Unsolved
    1
    0 Votes
    1 Posts
    96 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    17 Views
    No one has replied
  • How do I create a scribble area with Qt Designer

    Solved
    6
    0 Votes
    6 Posts
    534 Views
    P
    Thank you. I will keep that in mind.
  • Resize QChartView automatically

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    mrjjM
    Hi You seems not to insert the chartView into the layout you put on central/frame
  • Writing Qt documentation

    Solved
    3
    0 Votes
    3 Posts
    329 Views
    Please_Help_me_DP
    @sierdzio thank you! Seems to me that Qt really doesn't show more than one line in appeared hint