Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Generate binary file with pyinstaller

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    X
    @SGaist I clean it and I looked at the python package version. I notice that the PySide version installed was the 5.15.2 and the matplot uses the 5.15.0. I modify the PySide versin and now the package are compatible.
  • Temp

    Unsolved
    2
    0 Votes
    2 Posts
    157 Views
    jsulmJ
    @Pappu-Kumar-Keshari What is this?
  • 0 Votes
    1 Posts
    196 Views
    No one has replied
  • multiple QT applications on an embedded ARM Linux platform

    Unsolved
    3
    0 Votes
    3 Posts
    319 Views
    B
    @SGaist Yes, I have also considered this reason. I will try to see if I can resolve it. Thank you!
  • Is QGraphicsItemGroup a good design choice for editable diagram elements?

    Unsolved
    1
    0 Votes
    1 Posts
    145 Views
    No one has replied
  • no member named 'cout' in namespace 'std'

    Solved
    7
    0 Votes
    7 Posts
    10k Views
    S
    @Kopilov Thank you!! Worked for me fine
  • Locating the source of heap corruption (setup and general guidelines)

    Solved
    2
    0 Votes
    2 Posts
    602 Views
    deisikD
    AddressSanitizer is the way to go and debug
  • QT With Cloud Database

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    R
    @CKurdu Thank you very much for the information and for the shared links.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    15 Views
    No one has replied
  • How to obtain the battery design capacity of a laptop?

    Unsolved
    9
    0 Votes
    9 Posts
    609 Views
    Christian EhrlicherC
    Please stop posting images but your code with the proper code tags. Your code prints something to stdout and not to a widget from your former post. What do you expect? That stdout is magically redirected to your widget?
  • from c++ QVector<QVector<QString>> to QML JS array

    Solved
    4
    0 Votes
    4 Posts
    440 Views
    S
    ugh... you guys are right... i was thinking very wrong way of the method... basicaly it looks this way: // 2D array declaration logic QVector<QVector<QString>> CreateTableau(int sizeX, int sizeY) { .... code in initial post return result; } void SAP::materials(QString lageort, QString werk) { ... not important code table_Quantities(tableHandle); } QVector<QVector<QString>> SAP::table_Quantities(RFC_TABLE_HANDLE returnTable) { for (i=0; i<tabLen; i++) { int colLen = 10; if (i==0) { result = CreateTableau(tabLen, colLen); } //by first row we find out how many columns are there, and will declare 2D array accordingly // loop throught columns for (int j = 0; j < colLen; j++) { result[i][j] = something; //qDebug() << result[i][j]; // works fine } } return result; } and when calling it from QML: Component.onCompleted: { let table = []; table = sap.tablePopulate("5506", "6104"); console.log(table.length); // TypeError: Cannot read property 'length' of undefined } then it obviously is undefined when im calling sub method which creates no data unless its called from materials() :D so I need the SAP::materials() declare also as QVector<QVector<QString>> so now it works as expected... Thank you guys
  • [SOLVED]can't open file from qresources

    ressource
    23
    0 Votes
    23 Posts
    10k Views
    E
    I'm Using Qt 6.5.2 and had the same issue and after an hour of digging and testing all your solutions i did some digging on the build folder and i saw this: in <QBuild_Dir>/<cmake_project_name>/<module_name>_qml_module_dir_map.qrc <RCC> <qresource prefix="/"> <file alias="/<<<cmake_project_name>>>"><<<QBuild_Dir>>>/<<<cmake_project_name>>></file> </qresource> </RCC> so there is an alias for the resource! to use the resource on my C++ code i had to add it to the beginning of the resource path like before: ":/assets/img.svg" after ":/<cmake_project_name>/assets/img.svg and it works 👌
  • How douse QPainter, QPaintDevice and QPaintEngine work

    Unsolved
    5
    0 Votes
    5 Posts
    512 Views
    T
    @jeremy_k, yes, this helped a lot. I also saw that the SVG does not use the <line tag, but the <path tag for drawing a line.
  • How can i print a QImage to a thermal printer

    Unsolved
    9
    0 Votes
    9 Posts
    721 Views
    C
    @Mohan-Raj Is there a reason for posting the same problem under two separate accounts? https://forum.qt.io/post/771275 Have you read the (surprisingly informative) manual? Have you sent the commands to put the printer into bit image mode, set bit density, image size, before sending the image data? What arrangement of bits and scanlines does the printer expect? QImage::Format_Mono: "The image is stored using 1-bit per pixel. Bytes are packed with the most significant bit (MSB) first." The format described in the manual is not arranged the same way. What version of Qt are you using? QImage::byteCount() was marked, "This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code."
  • This topic is deleted!

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

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Can tableView selection behave as radio button (or other button)

    Unsolved
    4
    0 Votes
    4 Posts
    469 Views
    jsulmJ
    @JacobNovitsky said in Can tableView selection behave as radio button (or other button): there is none under the link you provide There is https://doc.qt.io/qt-6/qtwidgets-itemviews-coloreditorfactory-example.html ("The Color Editor Factory example"). And under "See also" there are some more links to examples...
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Crashes if close MainWindow

    Solved
    7
    0 Votes
    7 Posts
    594 Views
    C
    Crashes on exit are common if you do not have the parent-child hierarchy set up correctly.
  • Make effects on part of a window

    Unsolved
    1
    0 Votes
    1 Posts
    134 Views
    No one has replied