Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • 0 Votes
    12 Posts
    5k Views
    SGaistS
    @Robert_C said in OpenSource build of Qt5.15 with OpenSSL 1.1.1g statically linked - precondition libs.openssl failed: The nmake ought to take 2-3 minutes, right? Use jom, it will parallelise your build, nmake is sequential.
  • QT3d.render view3D how to set "ambientColor" property

    Unsolved
    1
    1 Votes
    1 Posts
    226 Views
    No one has replied
  • Stylesheet QRadiobutton

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    O
    I found the solution ! just add : QRadioButton { background: transparent; } and it works, stange ... Thanks
  • Qt Creator, Application Output font.

    Unsolved
    1
    0 Votes
    1 Posts
    200 Views
    No one has replied
  • QtCreator debugger not behaving deterministically

    Unsolved
    3
    0 Votes
    3 Posts
    277 Views
    K
    Yeah, I was a bit stingy with the information. However, I've since discovered that the debugger behavior is consistent, at least when it comes to breakpoints and general code behavior, the only issue is that stopping at a breakpoint stops the program output. For example, the following program gives this output when it hits the breakpoint: #include <QDebug> #include <unistd.h> int main(int argc, char *argv[]) { for (int i = 0; i < 20; ++i) { qDebug() << "Printing line " << i << "\n"; } int a = 0; // <-breakpoint here } 07:50:37: Debugging starts 2020-09-04 07:50:44.162658-0700 editor[3615:65377] Printing line 0 2020-09-04 07:50:44.162689-0700 editor[3615:65377] Printing line 1 2020-09-04 07:50:44.162695-0700 editor[3615:65377] Printing line 2 2020-09-04 07:50:44.162699-0700 editor[3615:65377] Printing line 3 2020-09-04 07:50:44.162702-0700 editor[3615:65377] Printing line 4 2020-09-04 07:50:44.162706-0700 editor[3615:65377] Printing line 5 2020-09-04 07:50:44.162709-0700 editor[3615:65377] Printing line 6 2020-09-04 07:50:44.162713-0700 editor[3615:65377] Printing line 7 2020-09-04 07:50:44.162716-0700 editor[3615:65377] Printing line 8 2020-09-04 07:50:44.162720-0700 editor[3615:65377] Printing line 9 2020-09-04 07:50:44.162724-0700 editor[3615:65377] Printing line 10 2020-09-04 07:50:44.162727-0700 editor[3615:65377] Printing line 11 2020-09-04 07:50:44.162731-0700 editor[3615:65377] Printing line 12 2020-09-04 07:50:44.162735-0700 editor[3615:65377] Printing line 13 2020-09-04 07:50:44.162751-0700 editor[3615:65377] Pri It just stops mid string like this. I've tried redirecting output to the terminal, but that just exits right away, without outputting anything. If I add usleep(20000); above the print line, it will print out all (20) of the strings. If I add usleep(10000); it will get to number 16. I'm using QtCreator 4.13.0, Qt 5.15.0. I'm using Clang that came with MacOS Catalina (x86 64bit in /usr/bin). I'm using LLDB that came with it (also in /usr/bin/lldb). This is a fresh install of the OS, there is nothing else installed on the system except the programs that came with it. MacOS version is 10.15.5.
  • nativeLanguageName is too verbose

    Unsolved
    5
    1 Votes
    5 Posts
    573 Views
    Pablo J. RoginaP
    @Megamouse said in nativeLanguageName is too verbose: That's why a map is not feasible, unless someone has a map of language code to all the language names Taking a second look at the "requirements", you could add one string in your open source code that's the "nativeLanguageName" and so, everyone adding a new language will have that string to translate in the set of strings to translate. So whenever a language file is loaded, the "nice" native language name is already there...
  • how to draw on other QWidgets?

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    T
    For other people, who look for the situation from my first post: pushButton->setStyleSheet("QPushButton{background: transparent;}");
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Licensing and shared objects

    Unsolved licensing
    2
    0 Votes
    2 Posts
    483 Views
    sierdzioS
    @AndrzejB said in Licensing and shared objects: Is possible static linking Qt libraries? Yes. Proprietary programs using Qt must uses second licence? Closed-source programs can choose between: LGPL Qt Commercial License If your program is paid but your clients will get the code, you can use "normal" GPL, too. And is possible create non GPL open source application using Qt , for example on BSD license? Yes, as long as you use LGPL for Qt.
  • QTableView Column setSectionResizeMode and Font

    Unsolved
    2
    0 Votes
    2 Posts
    234 Views
    JonBJ
    @Qt-Jo-Ha This should produce 3 columns: width 30, width 150, width whatever to stretch to fit. If you are saying some of the columns grow wider to fit their content, perhaps according to font, and you do not want that, then I think look at using horizontalHeader()->setSectionResizeMode(column, QHeaderView::Fixed); for each column?
  • GUI for different Screen size

    Unsolved
    2
    0 Votes
    2 Posts
    248 Views
    J.HilkJ
    hi @mganesh and welcome please take your time and read (parts of) the documentation Qt's documentation is very detailed and good and in this case has a whole chapter on that topic: https://doc.qt.io/qt-5/scalability.html
  • QOpenGLWidget: Cannot make uninitialized widget current

    Unsolved
    1
    0 Votes
    1 Posts
    136 Views
    No one has replied
  • Put 2 widgets on top of each other

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    G
    I did not know something like that exists ^^. I checked that out and it looks like, the widget I choose from the index gets shown in the window. So simply I will put a QStackedWidget in the place of my QTableWidget and then put 2 QTableWidgets in it I believe.
  • How do I disable specific warnings in Qt Creator?

    Unsolved warnings
    2
    0 Votes
    2 Posts
    971 Views
    SGaistS
    Hi and welcome to devnet, As the other topic you link discusses, are you talking about the code model warnings or compiler warnings when building your code ?
  • Search <a*1>*2</a> and replace to *2 in QTextEdit

    Solved
    4
    0 Votes
    4 Posts
    224 Views
    sonichyS
    @sonichy s.replace(QRegularExpression("<a(.*?)>(.*)</a>"), "\\2");
  • What is the Purple Cogwheel icon here?

    Unsolved
    2
    0 Votes
    2 Posts
    363 Views
    JKSHJ
    @ronaldo said in What is the Purple Cogwheel icon here?: Can anyone please clarify what this purple cogwheel in the projects view (at the top of project tree) means? It used to be the normal folder icon. I fear there is some sort of problem. It's not a problem. It's just new visuals in Qt Creator 4.13 :) If I'm not mistaken, the purple cog means "Project folder". Compare with the "Headers folder", "Sources folder", and "Resources folder" further down the tree.
  • Dialog box with Proceed and Cancel buttons

    Unsolved
    4
    0 Votes
    4 Posts
    715 Views
    SGaistS
    These two custom slots are overkill. You can directly connect your buttons to the appropriate accept/reject slots.
  • Adding TLS functionality to QT MQTT Simpleclient example

    Solved
    2
    0 Votes
    2 Posts
    2k Views
    C
    Replying to my own post. Please ignore the post. The issue was fixed by moving the config to the button press event. Things do work as expected. Sorry about the noise. Thanks
  • Qt 5.15 mysql plugin on Debian 10

    Unsolved
    9
    0 Votes
    9 Posts
    809 Views
    eyllanescE
    @luca install libmysqlclient-dev package
  • Qt Designer layout bug

    Unsolved
    2
    0 Votes
    2 Posts
    451 Views
    mrjjM
    Hi For me, after morphing the layout to the widget, the description was still bold and values worked as expected. (also after run )