Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.2k Topics 455.3k Posts
  • Did QByteArray have memory limit?

    Solved
    14
    1 Votes
    14 Posts
    1k Views
    Christian EhrlicherC
    @Mozzie said in Did QByteArray have memory limit?: Is there any document about "QByteArray will not handle more than 2GB in Qt5"? Just take a look at the ctors, the access functions and the resize/size ones and it's clear that it can't contain more than 2GB ...
  • 0 Votes
    13 Posts
    1k Views
    Z
    @hskoglund I made it finally, guess what i have done ? i changed the libstdc++-6.dll and libgcc_s_dw2-1.dll files to make the three files ( libstdc++-6.dll and libgcc_s_dw2-1.dll and libwinpthread-1.dll ) with the same date ( from 2014 ) and now it work perfectly, thanks for your Help i don't know why but when i deployed the date of libstdc++-6.dll and libgcc_s_dw2-1.dll have changed ( or maybe he taked the wrong one ) [image: dcef4a1d-16bc-4ff7-96ee-92b563060f2e.png]
  • Active QGraphicsView from QGraphicsScene

    Solved
    2
    0 Votes
    2 Posts
    209 Views
    Pl45m4P
    @DonCoder You dont need your scene for this. Just check which view has focus. QGraphicsView * view view->hasFocus(); or QApplication::focusWidget();
  • Dynamically grow a widget into negative values.

    Unsolved
    1
    0 Votes
    1 Posts
    109 Views
    No one has replied
  • How to create an grid list UI like the example list view when open QT Generator

    Unsolved
    2
    0 Votes
    2 Posts
    226 Views
    Pl45m4P
    @pengxu If you look at Qt Creator sourcecode, you can see that this is a custom widget with grid view and custom item delegates https://github.com/qt-creator/qt-creator/blob/f2351b06e05f5a129df1e6a38557c692687674c6/src/plugins/qtsupport/gettingstartedwelcomepage.cpp#L262 QGridView is deprecated, I guess, but you can use a QTableWidget or QListWidget.
  • Build QtOpcUa with open62541 as backend (WITH ENCRYPTION SUPPORT)

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

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Efficiency between QProcess and "system"

    Unsolved
    4
    1 Votes
    4 Posts
    994 Views
    JonBJ
    @Mihan When using Qt there is no reason to prefer system() over QProcess. Even @Kent-Dorfman's "stall the parent while the work is being done" can now be achieved with the one-liner convenience static function https://doc.qt.io/qt-5/qprocess.html#execute introduced a couple of releases ago if that's what you want. And unless you are doing something special with popen(), Qt's QProcess offers pipe redirection on stdin/stdout/stderr in a convenient package.
  • This topic is deleted!

    Unsolved
    2
    3 Votes
    2 Posts
    48 Views
  • How to use pdf module in Qt 5.15?

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    C
    @J-Hilk thank you <3
  • Problem to compile my program with QVector

    Unsolved
    8
    0 Votes
    8 Posts
    425 Views
    J.HilkJ
    @Fulgurance what @mrjj wrote! also foreach is deprecated you are supposed to use the std range based for. For example: for( QWebEngineView *task : *WebViewTasks ){ ... }
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    27 Views
  • Creating Path /data/print

    Solved
    6
    0 Votes
    6 Posts
    353 Views
    Kent-DorfmanK
    @Pl45m4 said in Creating Path /data/print: I dont know if QDir or QFile can access hidden dirs or files Yes, they can.
  • QNetworkAccessManager functions in app, but not from library

    Unsolved
    2
    0 Votes
    2 Posts
    139 Views
    eyllanescE
    provide a minimum workable example
  • QInputMethod does not work properly on Linux.

    Unsolved
    5
    1 Votes
    5 Posts
    404 Views
    Q
    @SGaist It makes no difference how I do it: Win+Space, Alt+Shift (on Win 7) or by mouse via Input Indicator.
  • Table not showing changes while entering them, but does with submit button.

    Solved
    14
    0 Votes
    14 Posts
    593 Views
    R
    I solved this. The key was setData and Data functions. I created a list of objects from my query in my mainWindow function and sent it to my model. In Data, I returned the values for each column for the list of objects. Then in the SetData function, I set the values for that list in my switch statement. This way, my model was showing the editable list values instead of the query. When I selected submit, it updated the database with the saved queries from the values that were edited.
  • shift start dateTime in order to have endDateTime and startDateTime on Work time

    Solved
    4
    0 Votes
    4 Posts
    318 Views
    aha_1980A
    @SGaist said in shit start dateTime in order to have endDateTime and startDateTime on Work time: By the way, you might want to correct your thread title, it's missing an f in the first word and makes it a little bit out of context ;-) Fixed that - it burned my eyes ;)
  • Remove string from QStringList with higher number

    Solved
    4
    0 Votes
    4 Posts
    267 Views
    Christian EhrlicherC
    @Ayush-Gupta said in Remove string from QStringList with higher number: I am looking for algorithm. Can you please help ? @Pl45m4 already told you how to do it.
  • Quaternion rotation in 3D

    Unsolved
    4
    0 Votes
    4 Posts
    629 Views
    Pl45m4P
    @viniltc You can use Qt3D (C++ or QML) for that. You can use just a standard cube (other basic shapes are supported) or you could create your own mesh / .obj - file with e.g. Blender and import it. Qt3D https://doc.qt.io/qt-5/qt3d-index.html Here are some examples https://doc.qt.io/qt-5/qt3d-examples.html. I can recommend the ShadowMap QML Example (QML) and the Basic Shape C++ Example You can set the transformation by using QQuaternion and your quaternion data directly https://doc.qt.io/qt-5/qquaternion.html
  • Show waveform from mp3 file on mac

    Unsolved
    4
    0 Votes
    4 Posts
    673 Views
    Kent-DorfmanK
    there are open source MP3 decoder libraries. google search: "mp3 decoder library sourcecode"...