Skip to content
  • Qt for msvc problem

    Unsolved General and Desktop
    2
    0 Votes
    2 Posts
    23 Views
    JonBJ

    @Dot79677
    You do not give us the details of what exactly/happens.

    Even before copying dll’s it crashes windows on run or debug.

    If your program crashes, nothing to do with deployment, sort that out first. If you can get it to crash from a debugger show the stack trace.

    Btw, does it go wrong if you replace the QWebEngineView with something else, like a plain widget/label?

  • QAbstractListModel and QCustomPlot

    Unsolved QML and Qt Quick
    2
    0 Votes
    2 Posts
    25 Views
    SGaistS

    Hi,

    A model does not have any visual presence. There might be views on top of it though.

    What exactly is your architecture ?

  • 0 Votes
    3 Posts
    25 Views
    S

    @Scott-Izi the StackOverflow is here

  • QProcess language

    Unsolved General and Desktop
    5
    0 Votes
    5 Posts
    113 Views
    JonBJ

    @ChrisW67 said in QProcess language:

    Since you took systemEnvironment() and did not modify anything in the environment, you passed to the child process the environment it would have had by default.

    Hi Chris. I find this a bit misleading, as phrased. "By default", i.e. if the child process does not call setProcessEnvironment(), it receives the calling process's environment, not the system one.

    process->start(); // receives caller's environment process->setProcessEnvironment(QProcessEnvironment::systemEnvironment()); process->start(); // receives system environment

    @sonichy
    If neither of these results in your x-terminal-emulator having the desired language then you need (presumably) to find environment variable(s) which it uses to determine its language and set those in a (copied) environment correctly before calling process->start(). Or whatever it requires to control its language.

    Otherwise please answer @ChrisW67's questions. As he points out, precisely what x-terminal-emulator invokes con be configured/vary from Linux distro to distro. If whatever it ultimately runs does not provide a way to specify language, perhaps on the command line or via an environment variable, then you have to live with that.

  • 0 Votes
    12 Posts
    2k Views
    L

    Excuse me, I met the same question with you, is there any methods found to solve this question?

  • QmediaPlaylist replacement in Qt6.4.2

    Unsolved General and Desktop
    4
    0 Votes
    4 Posts
    957 Views
    KaguroK

    @baziorek Hi!
    This is just for exactly one mp3 file, what I would like achive is a QMediaPlaylist like in Qt5.

  • Retrieving data from QModelIndex

    Unsolved General and Desktop
    6
    0 Votes
    6 Posts
    65 Views
    JonBJ

    @Gandalf404
    I will try once again. There are two calls you can use to access data at a row/column:

    If you already have a QModelIndex for the desired row/column the shortest code you can use to read the data is index.data(). If you do not have a QModelIndex but have the desired row/column in some variables you can use model.data(row, column).

    If you have a desired QModelIndex index the following three expressions all return the same value:

    index.model()->index(index.row(), index.column()).data() index.model()->data(index) index.data()

    Which of these would you like to type into your code? There is nothing wrong with 1, but it is longer, and a tiny, tiny bit less efficient, than the totally equivalent 2. And similarly for 2 compared to 3. So I would choose 3.

    If you do not have a QModelIndex already to hand, but you know the row and column numbers you want, you could either create a QModelIndex index(row, column) in one statement and then use one the above in the following statement or you could use approach 1 something like:

    partId = model->data(someRow, 0); kitId = model->data(someRow, 1); partName = model->data(someRow, 2); ...

    If --- and I don't know whether this is you case, but it might be --- you write a function which is passed, say, the QModelIndex index (or const QModelIndex &index) of one cell, like the partId (leftmost column 0) of some row and you wish to access the other columns in that row you might write

    kitId = index.model()->index(index.row(), 1).data();

    Or, if you want to shorten this one, there is also a QModelIndex QModelIndex::siblingAtColumn(int column) const method, so

    kitId = index.siblingAtColumn(1).data();

    None of this makes a big difference which way you write it. No matter which approach you take the code will take relatively much longer fetching the data (the actual data() call in each case) from somewhere in the model than the bit of code fiddling with index.

  • 0 Votes
    4 Posts
    293 Views
    KaguroK

    @samuel898 Hi!
    Finally the Qt Team started working on my ticket!
    So you can follow the process on this ticket if you want:
    https://bugreports.qt.io/browse/QTBUG-127495

  • 0 Votes
    4 Posts
    68 Views
    L

    @SGaist said in Qt 6.8.2 for wasm on android, the keyboard always auto popup ?:

    Can you share the bug report ?

    https://bugreports.qt.io/browse/QTBUG-134917
    https://bugreports.qt.io/browse/QTBUG-133781

  • QOpenGLFunctions_4_5_Core static variables

    Unsolved Qt 6
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • List placeholder

    Unsolved General and Desktop
    4
    0 Votes
    4 Posts
    77 Views
    Chris KawaC

    @equeim viewport() is a documented API, so it's not an implementation detail, but you're doing a lot of work that is not really needed.
    You can simply subclass the listview and draw the text there, e.g.

    void MyListView::paintEvent(QPaintEvent* evt) { QListView::paintEvent(evt); if (!model() || model()->rowCount() == 0) { QPainter p(viewport()); p.drawText(rect(), Qt::AlignCenter, "No items"); } }
  • Change Login Email Adress

    Unsolved Qt.io webservices
    2
    0 Votes
    2 Posts
    127 Views
    SGaistS

    Hi,

    You have to go to your Qt account page to do that.

  • 0 Votes
    22 Posts
    1k Views
    Christian EhrlicherC

    Don't mix debug and release libraries.

  • 0 Votes
    4 Posts
    136 Views
    SGaistS

    I was about to suggest adding an explicit decorator to the functions that "misbehave".

    I would however not decorate all properties blindly so it can also serve as documentation to avoid getting the same issues in the future.

  • 1 Votes
    7 Posts
    120 Views
    B

    @ctismer
    Thanks for fixing the problem.

  • 1 Votes
    8 Posts
    96 Views
    l3u_L

    Well, at least, when setting the QPalette::Window color, the background of the QScrollArea is painted using this very color – so I suppose it's the correct value.

    However, this seems to only affect Fusion. When e.g. using KDE's Breeze, the widgets inside are not affected in the same way. So I suppose I have to use the workaround I found (setting the style's default palette for all widgets inside).

  • 0 Votes
    1 Posts
    20 Views
    No one has replied
  • building android apk arm64-v8a error

    Unsolved Mobile and Embedded
    1
    0 Votes
    1 Posts
    23 Views
    No one has replied
  • 0 Votes
    2 Posts
    42 Views
    W

    When I selected such a Device:
    android9.png
    , the program almost started.
    There was nothing in the Problems window.
    But in the Output window there were warnings and errors:
    output1.png
    output2.png
    .
    And the program still did not start:

  • 0 Votes
    1 Posts
    25 Views
    No one has replied