Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qt5
    Log in to post

    • QtJambi 6.4.3 available
      Language Bindings • qt5 qt6 binding java language • • Pedromix  

      1
      0
      Votes
      1
      Posts
      20
      Views

      No one has replied

    • UNSOLVED QMYSQL driver not loaded on Ubuntu
      Installation and Deployment • qt5 qt creator error • • artem1997262  

      15
      0
      Votes
      15
      Posts
      156
      Views

      @artem1997262 said in QMYSQL driver not loaded on Ubuntu: Although below shows found that file Where is it located? And did you check whether it is 64bit this time?
    • SOLVED cmake cannot find libws2_32
      General and Desktop • qt5 cmake windows 10 mingw32 • • nekkceb  

      3
      0
      Votes
      3
      Posts
      121
      Views

      Well I feel a bit silly, but I thought I had tried that. Seems to work now though.
    • UNSOLVED Qt C++ FireBase Update Unique Value
      General and Desktop • c++ qt5 database firebase • • OguzhanOzturk  

      2
      0
      Votes
      2
      Posts
      95
      Views

      Hi, Not knowing the FreeBase API it's hard to answer. Do you have a link of it ? In any case, the worst case scenario would be to fetch the whole data, change the fields you want and then send again the whole data.
    • SOLVED Qt5 | uic.exe | msys2 | ui_* will not generate
      Installation and Deployment • qt5 qmake ui design uic msys2 • • VikingOfValhalla  

      10
      0
      Votes
      10
      Posts
      201
      Views

      @Christian-Ehrlicher thank you for your help :)
    • UNSOLVED Disconnecting From Qt VNC Server causes Segmentation Fault on Server
      Installation and Deployment • c++ qt5 tcp vnc • • lostdev  

      1
      0
      Votes
      1
      Posts
      88
      Views

      No one has replied

    • SOLVED QSortFilterProxyModel: Reset model shows ghost items
      General and Desktop • qt5 qsortfilter • • Joel Bodenmann  

      8
      0
      Votes
      8
      Posts
      205
      Views

      @FPEY said in QSortFilterProxyModel: Reset model shows ghost items: EDIT: Nevermind, my issue was also a stupid mistake: I was simply not calling the function to make the whole reset model stuff when I had multiple lines selected ^^ Glad to hear that you managed to resolve your issue :) I'm not exactly sure where the problem I was facing originated from hence I didn't leave any details as I don't want people to be mislead. This was my first time working with QStandardItemModel. So far I have always implemented models directly by deriving from QAbstractItemModel. When using the QStandardItemModel with the proxy model, the proxy's state was not invalidated when rows were inserted or removed (again, I don't know (yet) why). The quick fix without actually understanding the problem was to invoke the QStandardItemModel::invalidate slot whenever rows were either inserted or removed: connect(m_model, &model::rowsInserted, m_proxy_model, &QSortFilterProxyModel::invalidate); connect(m_model, &model::rowsRemoved, m_proxy_model, &QSortFilterProxyModel::invalidate); Where: m_model is of type QStandardItemModel* m_proxy_model is of type QSortFilterProxyModel*
    • UNSOLVED qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
      Installation and Deployment • qt5 xcb qt.qpa.xcb • • Yash_r  

      26
      0
      Votes
      26
      Posts
      2224
      Views

      It looks like a warning rather than an error per se. You might have to configure something on the X server side.
    • SOLVED Qt menu looks "old" on Windows
      General and Desktop • qt5 windows menu qt5.15.2 menubar • • tontsa28  

      6
      0
      Votes
      6
      Posts
      188
      Views

      I took a look with the ListDLLs tool but couldn't actually find the plugin being used by the 32-bit version, maybe some other DLL is handling that? Anyway, my problem is now solved so I'll mark this topic as solved.
    • UNSOLVED Installed Qt 5.15.0, but I got Qt 6.2.2
      Tools • qml qtcreator qt5 qt5.15.0 qtversion • • Joshika_Namani  

      4
      0
      Votes
      4
      Posts
      197
      Views

      @J-Hilk said in Installed Qt 5.15.0, but I got Qt 6.2.2: @JKSH in the about Qt CREATOR window of QtCreator of cause, like most other misunderstandings regarding "Qt versions" :P Ah, of course... I should've known better 😅 @Joshika_Namani said in Installed Qt 5.15.0, but I got Qt 6.2.2: after installation its showing its version as 6.2.2 The Qt Creator's "About" box shows the version of Qt that was used to build Qt Creator. It does not show the version(s) of Qt that you use to build your projects. in tools->options->kits its showing Qt 5.15.0 GCC 64 bit. Then your projects will be built using Qt 5.15.0. Note: You can install multiple versions of Qt and use them all in a single version of Qt Creator. Does this make sense?
    • SOLVED parameter passing to Qthread
      General and Desktop • qt5 qthread c++11 qtcreator 5.0 qthread threads • • Vivek_A  

      7
      0
      Votes
      7
      Posts
      1565
      Views

      @jsulm @Christian-Ehrlicher signal/slot method working connect(this,&MainWindow::starting,onethread,&myThread::recvNum); onethread->start(); for(int i=1;i<5;i++) { emit starting(i); }
    • UNSOLVED Fast writing to mongodb make Application not responding
      General and Desktop • qt5 qt creator thread mongodb mongocxx • • Vivek_A  

      7
      0
      Votes
      7
      Posts
      285
      Views

      @Vivek_A I note that all your questions are about mongodb, its performance, and so on. Have you tried joining some mongodb forum where these might be better answered?
    • UNSOLVED How do I put a QLayout in a QWindow?
      General and Desktop • qt5 qt5.11 • • timob256  

      2
      0
      Votes
      2
      Posts
      166
      Views

      @timob256 Cross-referenced from your other thread at https://forum.qt.io/topic/132655/how-to-embed-ogre3d-in-qt5-as-a-widget. A QWindow is not derived from a QWidget, so, no, you cannot put a QLayout on it. Docs say: The QWindow class represents a window in the underlying windowing system. So you do not set extra buttons or charts or whatever on a QWindow. You may know better than I, and I don't know how it relates to your "Ogre" situation, but you may want to read through What is the difference between a QWindow and QWidget and maybe Introducing QWidget::createWindowContainer() too. Qt: layouts with a Qwidget window container talks about layouts too.
    • SOLVED How to Build and Install Missing Qt Modules?
      General and Desktop • qt5 qt3d modules qtdatavis3d • • new.qt_user-2022  

      3
      0
      Votes
      3
      Posts
      158
      Views

      Yup. You can find the packages under Pi Menu > Preferences > Add/Remove Software. Doing a search there will eventually bring up the needed modules. I am still curious as how one builds the modules separately though. Thanks again!
    • SOLVED Cross-compile Qt5 with tslib: Feature 'tslib' was enabled, but the pre-condition 'libs.tslib' failed
      Mobile and Embedded • qt5 cross-compile tslib • • sitti  

      21
      0
      Votes
      21
      Posts
      636
      Views

      @raven-worx doing a shadow build in a parallel directory (instead of build inside the source folder), the tslib support has been added succesfully (the reason is a mistery for now). The make process gives other errors, but the tslib subject is solved. Thank you.
    • UNSOLVED QTcpSocket Write
      General and Desktop • qt5 qthread qtcpsocket qtimer • • duckrae  

      8
      0
      Votes
      8
      Posts
      197
      Views

      @duckrae List your client with id, when you are getting new incomingConnection. server can reply as per client id to a specific client or reply to all.
    • UNSOLVED QGraphicsTextItem dynamic resizing
      General and Desktop • qt5 resize dynamic qgraphicstextit • • wazzdaman  

      1
      0
      Votes
      1
      Posts
      185
      Views

      No one has replied

    • UNSOLVED how to add a suffix to a file after saving it on filedialog in qml
      General and Desktop • qml qt5 file filedialog • • vinaygopal  

      3
      0
      Votes
      3
      Posts
      347
      Views

      Hello, I want to know how to add a suffix to a file after saving it on filedialog in qml and I came here in hope to find my answer. But It makes me sad when I can't find it. I tried filePath = filePath + '.txt' but isn't working for me. Can anyone share a website with me in which I can find the solution? I will be very much thankful to you.
    • UNSOLVED how to draw a star ??
      General and Desktop • qt5 qt4 geometry 2d graphics • • timob256  

      1
      0
      Votes
      1
      Posts
      195
      Views

      No one has replied

    • UNSOLVED how to create a 2D speedometer. (is there any qt example) ??
      General and Desktop • qt5 qpainter qt4 2d graphics • • timob256  

      2
      0
      Votes
      2
      Posts
      168
      Views

      Simply two QPainter::drawArc() calls with a different color.
    • SOLVED can't start class in class
      General and Desktop • qt5 2d graphics • • timob256  

      8
      0
      Votes
      8
      Posts
      186
      Views

      #include "krug_qt.h" Krug_qt::Krug_qt(QWidget *parent) { } Should be: Krug_qt::Krug_qt(QWidget *parent) : QWidget(parent)
    • UNSOLVED How to write another Thread data in txt file?
      General and Desktop • c++ qt5 qthread qtimer • • duckrae  

      4
      0
      Votes
      4
      Posts
      203
      Views

      @duckrae said in How to write another Thread data in txt file?: How can I handle it? Simply emit the signal: QTimer *timer = new QTimer(this) timer->start(60000); emit myTimeoutSignal(text);
    • SOLVED can i give a string for in place of regExp in QML
      QML and Qt Quick • qml qt5 regex • • vinaygopal  

      2
      0
      Votes
      2
      Posts
      242
      Views

      Guess you can give the string to RegExp constructor RegExpValidator {id:decimal_validator ; regExp: new RegExp(reg_expression)} Edit: Another point, I think you don't need to add extra "/" character if you define your regex using string. I think it should be either : property string reg_expression: "[0-9]+" or property RegExp reg_expression: /[0-9]+/ Note also you can use "\\d+" or /\d/ instead of "[0-9]+" for your regex You may also be interested by this great website for developing and testing regex: https://regex101.com Edit2: Correction of my stupid mistake of my first edit. regex for digit character is obviously \d and not \w
    • SOLVED how to get the current index on click of an image for table view
      QML and Qt Quick • qml qt5 tableviewcolumn table view • • vinaygopal  

      2
      0
      Votes
      2
      Posts
      258
      Views

      @vinaygopal according to the documentation: https://doc.qt.io/qt-5/qml-qtquick-controls-tableviewcolumn.html#delegate-prop this should do the trick: Component{ id:firstColumnComponent Item { id: toplevelItem property bool textpresent: true Row{ spacing: 10 TextField{ id:te width: 100 text: styleData.value maximumLength: 20 onAccepted:{ console.log("the editing is finished to",te.text) peopleTable.editfinished(te.text,styleData.value) } } Image { id: fav_image source: "qrc:/favourite_icon.png" height: 20 width: 40 MouseArea{ anchors.fill: parent onClicked: { console.log("the current index is",styleData.row) //Change happened here } } } } } }
    • SOLVED how to apply certain properties only to the selected delegates
      QML and Qt Quick • qml qt5 delegate tableviewcolumn table view • • vinaygopal  

      3
      0
      Votes
      3
      Posts
      207
      Views

      @fcarney Got it thank you so much :)
    • SOLVED Mongodb doesn't work : inferior stopped, unknown signal
      General and Desktop • c++ qt5 qt creator mongodb • • Vivek_A  

      19
      0
      Votes
      19
      Posts
      731
      Views

      still in mingw way problem not solved . so i choose msvc compiler to do that .. so iam closing this ...
    • UNSOLVED QML Tree View Expand or collapse Even while clicking on the text or the anywhere on the row
      QML and Qt Quick • qml qt5 qtquick treeview treeview model • • vinaygopal  

      1
      0
      Votes
      1
      Posts
      222
      Views

      No one has replied

    • SOLVED undefined reference to `_imp___ZN8mongocxx7v_noabi8instanceC1Ev in Qt?
      General and Desktop • qt5 c++ qt c++11 mongodb • • Vivek_A  

      23
      0
      Votes
      23
      Posts
      687
      Views

      my compiler is mingw32bit and mongocxx driver build in 64 bit . so thats make problem , i solved it by installing 64bit Qt.
    • UNSOLVED QQuick3DGeometry in Qt5/Qt6
      General and Desktop • qt5 qt6 qtquick3d • • ValeriaAme  

      1
      0
      Votes
      1
      Posts
      157
      Views

      No one has replied

    • UNSOLVED How to flatten a TreeView to show only the leaf node items?
      General and Desktop • c++ qt5 qtreeview • • ralphtink  

      4
      0
      Votes
      4
      Posts
      444
      Views

      @ralphtink said in How to flatten a TreeView to show only the leaf node items?: I don't want to import a whole library just for this I would strongly suggest you do but even if you want to go against my advice you can just: take kbihash_p.h, kdescendantsproxymodel.h and kdescendantsproxymodel.cpp add the files to your project replace #include "kitemmodels_export.h" with #define KITEMMODELS_EXPORT satisfy LGPL 2 requirement on the imported code
    • UNSOLVED PointLables on series Hide under screen close to axis in QtCharts (c++)
      General and Desktop • c++ qt5 qtcharts • • Usama  

      1
      0
      Votes
      1
      Posts
      149
      Views

      No one has replied

    • UNSOLVED how to insert an element inbetween to QGraphicsPathitem?
      General and Desktop • qt5 • • Selvajothi  

      2
      0
      Votes
      2
      Posts
      131
      Views

      @Selvajothi I know nothing about this, but since you have received no other reply..... Since I do not see any "insert item" in QGraphicsPathItem Class, but I do see void QGraphicsPathItem::setPath(const QPainterPath &path) Sets the item's path to be the given path. See also path(). are you supposed to use QPainterPath QGraphicsPathItem::path() const to retrieve the current path (if you need that), manipulate to insert your extra element, and pass it back to QGraphicsPathItem::setPath() to reset the path as a whole?
    • SOLVED Use two QT5.x versions in parallel
      Installation and Deployment • qt5 pyside2 cross-compile raspberry pi 2 • • ben80  

      9
      0
      Votes
      9
      Posts
      388
      Views

      @ben80 said in Use two QT5.x versions in parallel: @jeremy_k said in Use two QT5.x versions in parallel: What's the reason for using different versions of Qt 5? Going down this route opens up a class of problems involving incompatible intermingling. @jeremy_k said in Use two QT5.x versions in parallel: Option 4) Have you looked into using a virtualenv for the python program? Apt-get won't install into it, but pip will. This encapsulates the library path mangling, although the same environment pollution problem exists for child processes. It seems like there is so much that i can do wrong here. I am running this raspberry only at my home, so i am not distributing it. As long as i have a working solution (not too messy) it's ok for me. That's the best version of an unfortunate scenario. If you're careful about not executing other programs, the environment variable issue is manageable. Python modules that use external commands to discover bits of system configuration appears to be common. For example, https://github.com/pyinstaller/pyinstaller/issues/4657. QDesktopServices::openUrl() failing to work is another one to watch for. I cannot use pip on the raspberry, since there are no ARM packages for PySide2 provided. Therefore i am using apt-get. I am also using a pyenv virtualenv, but i need to copy the site-package files manually. Not nice, but it works. It might be reasonable to tell apt-get to install into the venv directory as an alternative root. For dpkg, the option appears to be --root=<alternative root>.
    • UNSOLVED can we add multiple QGraphicscene to QGraphicsView?
      General and Desktop • qt5 • • Selvajothi  

      8
      0
      Votes
      8
      Posts
      267
      Views

      @Selvajothi You could create one QGraphicsWidget per design, then arrange them into one scene using QGraphicsLinearLayout.
    • UNSOLVED How to close the Pdf file while closing the application?
      General and Desktop • qt5 python • • Selvajothi  

      2
      0
      Votes
      2
      Posts
      166
      Views

      Hi Well you ask the OS to open any app that is tied to the extension pdf. Its not really possible to ask it to close without using platform native api calls to find this window and try to close it. You could use https://doc.qt.io/qt-5/qtpdf-index.html to display the pdf yourself and hence be able to close the pdf view.
    • UNSOLVED how to import cpp dll in python?
      General and Desktop • qt5 python3 • • Selvajothi  

      4
      0
      Votes
      4
      Posts
      344
      Views

      @Selvajothi There could be many causes. I suggest you Google for _dlopen specified procedure. Note that the error you show is on procedure, not on module.
    • UNSOLVED How to handle signals and slots inside cpp dll?
      General and Desktop • qt5 • • Selvajothi  

      7
      0
      Votes
      7
      Posts
      363
      Views

      @Selvajothi as I said - you need an instance of serverAuthentication passed to connect QObject::connect(networkaccess, SIGNAL(finished(QNetworkReply*)), __here__, SLOT(getcredential(QNetworkReply*))); ^ //you need a pointer to instance of serverAuthentication Where do you get it from? That's up to you. Also you're still leaking memory and have all the other issues I listed previously. Usually when working with C style libraries you have it organized kinda like this: void init(); // Creates instances of any "global" things you need, e.g. serverAuthentication and QNetworkAccessManager something doSomething(); // Does something with the global instances, like your AuthenticateServer function void shutdown(); // Destroys the global instances
    • SOLVED how to check whether we logged into the server or not using QtNetworkAccessManager?
      General and Desktop • qt5 • • Selvajothi  

      3
      0
      Votes
      3
      Posts
      160
      Views

      thank you
    • SOLVED How to enter Logical expression in QLineEdit with QCompleter?
      General and Desktop • qt5 • • Selvajothi  

      4
      0
      Votes
      4
      Posts
      180
      Views

      solved the problem by adding self.end_index = len(self.existing_txt) in pathFromIndex after getting the text value from QLineEdit