Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Multiple real time plots/charts

    Unsolved
    16
    0 Votes
    16 Posts
    11k Views
    L
    I am working with a application that has 12 curves and I am have the same problem, if I increase the number of curves, the performance decrease. I use qcustomplot. I need to plot 300pixels/second. Does anyone have some ideas?
  • Scroll Area

    Unsolved
    11
    0 Votes
    11 Posts
    704 Views
    mrjjM
    Hi It compiles for me. Try to do a build -> clean and rebuild all.
  • Apply custom shader to Surface3d graph

    Unsolved
    1
    0 Votes
    1 Posts
    89 Views
    No one has replied
  • QMap Struct and finding key/value!

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    B
    @Kris-Revi "Studio Lights" and "Studio lights"? It is case sensitive.
  • obtain the coordinators of the external app window

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

    Solved
    2
    0 Votes
    2 Posts
    17 Views
  • How to connect QTableView to local file

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    tovaxT
    Thanks very much for the reply of @Gojir4 and @JonB . It's very useful to me. The above is my solution, which may not be the best way, but it can solve the problems I currently encounter. I hope it can help friends who encounter similar problems. Best regards!
  • Scene 3D Open GL Crash on 5.15

    Unsolved
    3
    0 Votes
    3 Posts
    325 Views
    A
    @SGaist Sorry forgot to mention that. Qt - 5.15.1 on Windows 10 (using MSVC 2019).
  • How to design a solution for QLabel text alignment?

    Unsolved
    6
    0 Votes
    6 Posts
    927 Views
    B
    Is there any way of doing this? I saw that input to be right-justified has a range: //$X.XX e.g. $5.00 //$XX.XX e.g. $50.00 //$XX.XX e.g. $500.00 //$XX.XX e.g. $4999.00 (Max) If my QString value1 contains the above strings, I count the characters e.g. 5 6 7 8 (Max) Then I take the value 2 let us say $2.36 which will always be 5 chars and do: value2 = value2.rightJustified(lengthOfValue1String,QLatin1Char(' '), true); The problem obviously is non-monospaced Arial font. But I noticed that if I do QLatin1Char('$') instead of space, both values are aligned as per the images in my original post. But with $ instead of space which I don't want. Is there a way of using the fillChar with $ and then make them invisible? : )
  • how add new libs like poppler on QT

    Solved
    3
    0 Votes
    3 Posts
    550 Views
    AlbatorA
    [image: 794c7ec5-b8b7-496c-93fa-36b6133f0bf8.png] thank you for your advice. I find my headers now!
  • Drop Event Problem

    4
    2 Votes
    4 Posts
    451 Views
    SGaistS
    What do you mean by does not work ? Is it not called ?
  • error: QThread no member named create

    Unsolved qthread threading multi-thread
    9
    0 Votes
    9 Posts
    2k Views
    SGaistS
    That question is being answered on this thread.
  • Upgrade QT 5.9.5 to 5.10 on Linux Ubuntu

    Unsolved
    2
    0 Votes
    2 Posts
    546 Views
    SGaistS
    Hi, AFAIK, you will need to use a PPA that provides them. Otherwise you can use Qt's online installer.
  • SQLite record insertion isn't correct using eventFilter() to catch the Enter key

    Solved
    5
    0 Votes
    5 Posts
    181 Views
    Y
    @Christian-Ehrlicher Debugger was not even necessary because the problem was just student's inexperience: i just needed to find QSqlQuery::at() in documentation and replace this piece of stupidity: QString DataProcessor::getValue(QString tableName, int recordNum, int colNum) { QSqlQuery query = selectAll(tableName); QStringList colTypes = getColTypes(tableName); QString value = ""; int i = 0; while( i <= 0) { if (query.next() == recordNum) { value = query.value(colNum).toString(); i++; } } return value; } by this: QString DataProcessor::getValue(QString tableName, int recordNum, int colNum) { QSqlQuery query = selectAll(tableName); QStringList colTypes = getColTypes(tableName); QString value = ""; while(query.next()) { if (query.at() == recordNum) { value = query.value(colNum).toString(); } } return value; }
  • read QString type Q_PROPERTY in axserver from js always return empty

    Solved
    2
    0 Votes
    2 Posts
    196 Views
    Y
    I finally solved this. It's actually kind stupid: name cannnot be used as Q_PROPERTY name. After I change the property name, it works.
  • Passing control+keypress instructions from one form to another

    Unsolved
    4
    0 Votes
    4 Posts
    353 Views
    Pablo J. RoginaP
    @donquibeats said in Passing control+keypress instructions from one form to another: works immediately. great, so don't forget to mark your post as solved then!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Sorting a QAbstractItemModelReplica via QSortFilterProxyModel doesn't update the view

    Unsolved
    1
    0 Votes
    1 Posts
    132 Views
    No one has replied
  • Cast QVariant to int

    Solved
    5
    0 Votes
    5 Posts
    3k Views
    JonBJ
    @TomNow99 But there isn't, for the same reason. QDataStream operator << needs to know the type at compile time, just the same question as before. Because we are C++ and that is a strongly typed language. Unless you're willing to stream it as a QVariant, which is not what you want. At the end of the day you can write a method just like you've shown just with the necessary ifs/switch for all the QVariant types you want to handle, which might be a dozen? Once you've written the method once, it's done.
  • This topic is deleted!

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