Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • What could cause clang to error, but gcc compiles it anyway?

    Solved
    19
    0 Votes
    19 Posts
    3k Views
    fcarneyF
    I am gonna say this is solved. I am tired of wasting time on this. Thanks for your help everyone. If I figure this out later I will post something here. I am going to be reevaluating my arm compiler installation later. Maybe that will find something.
  • Correct qrc resource file path?

    Solved
    5
    0 Votes
    5 Posts
    415 Views
    C
    @SGaist I'll read up on using aliases. Thank you for the help.
  • 0 Votes
    2 Posts
    473 Views
    SGaistS
    Hi and welcome to devnet, AFAIK yes. I am currently unsure about native M1 pre-built package being available but even with the x86_64 you should be able to get started.
  • Help needed in making a tcp server confused in connectrun and Qrunnable part.

    Unsolved
    2
    0 Votes
    2 Posts
    130 Views
    SGaistS
    Hi and welcome to devnet, From the code you posted, you don't have a server running so that might be the issue. The other thing is that you don't print what error happened in case the connection failed. That would help your diagnose the issue.
  • Qt Creator 6.2.0 crashes after startup on ubuntu 16.04

    Unsolved
    4
    0 Votes
    4 Posts
    339 Views
    SGaistS
    Hi, There are already quite a lot of threads regarding issues at startup. Did you check them ?
  • How to reduce QToolBar height?

    Unsolved
    1
    0 Votes
    1 Posts
    113 Views
    No one has replied
  • QTextStream reading line by line works only once

    Solved
    3
    0 Votes
    3 Posts
    249 Views
    S
    Hi @JonB, I've realised, that I forgot to add something to my code, so it works now. Thanks for the help anyway.
  • Add QPushButton to QTableWidget cell without using QTableWidget::setCellWidget

    Unsolved
    14
    0 Votes
    14 Posts
    1k Views
    JonBJ
    @VRonin As he pleases, if he sees this (unless you want to refer him to that from there). He doesn't seem to want to change, and thinks other things are at fault too, so it's probably a losing battle...
  • Avoid dealing with QString::normalized when converting to and from std::string

    Solved
    5
    0 Votes
    5 Posts
    781 Views
    J
    ok, too bad. Thanks for your help
  • Language translation with hot keys...

    Unsolved
    3
    0 Votes
    3 Posts
    259 Views
    SPlattenS
    @Pablo-J-Rogina , of course, thank you.
  • After Changing location of projects. QT creator isn't starting in ubuntu

    Solved
    3
    0 Votes
    3 Posts
    249 Views
    HeerokNewbieH
    @jsulm I accidentally also changed the Qt folder location.But after changing the Qt folder location it crashed and my OS become disable to detect QT. but after reinstalling it my problem is solved. i installed it using terminal. sorry for my bad English.
  • Calling a lineEdit value from one form to another form

    Unsolved
    4
    0 Votes
    4 Posts
    355 Views
    JonBJ
    @LT-K101 said in Calling a lineEdit value from one form to another form: I declared it as a global variable and it worked. I know, but that is so not the way to do it! I don't begin to have the time to show & teach you what you should be doing, I'm afraid....
  • Avoid "Not Responding" when adding rows to QTableWidget

    Unsolved
    29
    0 Votes
    29 Posts
    3k Views
    H
    @JonB said in Avoid "Not Responding" when adding rows to QTableWidget: It sounds like your slowness is to with many widgets on a QTableWidget. Not only widgets, adding rows to database also causes slowness. To solve the slowness, having the unsolved delegate topics (Add widget right aligned to a QTableWidget cell and Add QPushButton to QTableWidget cell without using QTableWidget::setCellWidget) answered solves the problem since all I will have to do is to add rows to database in a thread. Right now longuitask solves the problem described in the OP, but @jeremy_k pointed out that it's not the ideal solution so I am trying to understand why he said that and trying out his sugestions.
  • Qt app on mac

    Solved
    12
    0 Votes
    12 Posts
    1k Views
    T
    Edit: I solved it. Or better said, the problem is gone. I made the application executable by using pyinstaller. I used to just give the command my path to the application. However, my application runs in a virtual environment. Installing pyinstaller in said virtual environment and executing the command while still in the virtual env, the problem with the double-click was resolved.
  • Help with QTextstream splitting "lang=2"

    Moved Unsolved
    11
    0 Votes
    11 Posts
    742 Views
    Q
    @JonB said in Help with QTextstream splitting "lang=2": I have not tested, and you may say it does not apply to you because you will only ever have one line (in which case the whole overhead of using a QTextStream seems quite pointless to me), but what does your new code do now on a file like, say: var1=value1 var2=value2 MyTextStream is good for splitting a single text line only - it is the replacement for the unsafe sscanf -- you split the line and put values according their types. var1=value1 is a text line that could be split in two QStrings var and value1. but if you have var1=15.5 you can put 15.5 directly into the float var. QString qstr = "lang=2.23"; MyTextStream ss(&qstr, '=', ' '); QString lang; double kol_lang = 0; ss >> lang >> fixed >> kol_lang; QString qstr = "var1=value1"; MyTextStream ss(&qstr, '=', ' '); QString lang, qval; ss >> lang >> qval;
  • QFile write to specific line

    Unsolved
    6
    0 Votes
    6 Posts
    742 Views
    jsulmJ
    @Sucharek said in QFile write to specific line: what specific point? Specific position in the file where next read/write operation will work https://doc.qt.io/qt-5/qfiledevice.html#seek But, as @J-Hilk wrote, you will overwrite what is at this position, not insert. If you want to insert something you need to write the old content at the location where you're inserting after the inserted data.
  • how to draw a star ??

    Unsolved geometry 2d graphics qt4 qt5
    1
    0 Votes
    1 Posts
    769 Views
    No one has replied
  • With header QTreeView::mapToGlobal returns an unexpected value

    Solved
    4
    0 Votes
    4 Posts
    326 Views
    eyllanescE
    @jronald The positions of the mouseXEvent methods of the classes that inherit from QAbstractScrollArea such as QTreeView are relative to the viewport.
  • Build error solution error: qtbase/lib/libQt5Charts.so: No such file or directory

    Unsolved
    2
    0 Votes
    2 Posts
    174 Views
    jsulmJ
    @IknowQT You probably did not build QtCharts module.
  • Faster webview than webkitengine?

    Unsolved
    2
    0 Votes
    2 Posts
    196 Views
    SGaistS
    Hi, Depending on your needs the QLiteHtml playground project might be of interest.