Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • qt stopped to call output terminal, how to fix it?

    Unsolved
    3
    0 Votes
    3 Posts
    168 Views
    C
    You say it "stopped", which means it used to work, so what was the last thing you did before it stopped working? Also, the output of what is not getting called? Is it the output of a project? A simple program? A build? How are you trying to output it? Which Qt version are you using? What is your current OS? Spare no related details.
  • How to best model data for Model/View

    Unsolved
    5
    0 Votes
    5 Posts
    432 Views
    V
    @SGaist I had considered the option but thought I could keep avoiding implementing the database, which I've never done. Now it seems like implementing the models as QSqlTableModel and QSqlRelationalTableModel accessing the database is indeed the most sensible option in the long term. Thanks for your suggestion!
  • 0 Votes
    9 Posts
    435 Views
    Christian EhrlicherC
    @JonB said in Segmentation fault when calling 3 methods, works normally when calling only 2 of same methods: LOL, well spotted! :) But only at the second sight... I overlooked it during the first reading because I normally don't use these iterators. It's much easier to read and write it this way: const QVector<User> userList = json.getUsersBrief(); for (const aut&user : userList) append({user.getName(), user.getLastName(), user.getEmail()}); reset(); // whyever this is needed, begin/endInsertRows() would suffice here.
  • Text Edit example doesn't always update the style combo box after deleting text

    Unsolved
    1
    0 Votes
    1 Posts
    105 Views
    No one has replied
  • not needed command prompt OS window

    Unsolved
    6
    0 Votes
    6 Posts
    361 Views
    R
    @Christian-Ehrlicher Not url. I display some text from local PC, not network.
  • Build Android Apps with Qt

    Unsolved
    4
    0 Votes
    4 Posts
    331 Views
    ?
    @thomasGl I think you should try older versions of jdk. In Qt 5.15's documentation they claim that jdk version 11 and later are supported but I had problems with jdk 19 with Qt 6.4.2 while jdk 17 works smooth. I think jdk 19 is way too recent for such an old version of Qt.
  • Access the function of another window.

    Unsolved
    2
    0 Votes
    2 Posts
    174 Views
    JonBJ
    @kipalex said in Access the function of another window.: signal: public slots slot: Please start by correcting these for yourself so it compiles. You did not find either of these out there on the web. Use the documentation or examples, there are so many you don't need to make someone else write it for you. Though see below as you may not need either. connect(this, &MainWindow::credentials, &Configuration::Configuration, &Configuration::ReadXML); &Configuration::Configuration is incorrect. It requires a pointer to the slot object. If you are creating a "Configuration window" as you say then use the instance here. If the main window creates the configuration window then there is no point having a signal, connecting and emitting. It might as well just call Configuration::ReadXML() when it wants to.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • QLabel text with embedded ellipsis

    Unsolved
    7
    0 Votes
    7 Posts
    705 Views
    PerdrixP
    @Christian-Ehrlicher Because sometimes we think that the basic framework should provide a function and are surprised when it doesn't. Furthermore we are often under time pressure, and don't always know how best to handle stuff Sure given time and resources we can write what's needed, but sometimes we hope that it is there for the taking!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • QSettings crashes immediately

    Solved qsettings
    6
    0 Votes
    6 Posts
    828 Views
    SavizS
    @SGaist That is a very good point. I will change it.
  • Sharing 1 QSharedPointer across 2 classes?

    Solved
    3
    0 Votes
    3 Posts
    239 Views
    C
    @Christian-Ehrlicher Oh that's good to know thank you.
  • 0 Votes
    1 Posts
    122 Views
    No one has replied
  • Put a button on the qlabel that fills the screen

    Solved
    4
    0 Votes
    4 Posts
    743 Views
    C
    If you have to use a QLabel for your background (because there better ways to do so) then I suggest using its geometry. set its pos to (0,0), and size to the size of your window or central widget, and you might also need to change its Z-Order in which case you can use lower or raise functions this topic might be of use : Bring widget at the back of another widget
  • qt 5.5.1 open source license diteiles

    Unsolved
    6
    0 Votes
    6 Posts
    479 Views
    L
    @ChrisW67 tnx, in the base library open-source you can only see the list of the licenses and not the use for each module. the other link for each module is helpful, I have to look for each module separately but it's more than I found until now.
  • Problem when adding webp.lib.

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    M
    @Christian-Ehrlicher However, when recompiling with MSVC, many errors occur. I don't know how to handle this.
  • BLE problem on win11

    Unsolved
    2
    0 Votes
    2 Posts
    261 Views
    A
    Hi, I'm having the same problem, did you solve it later?
  • Conclusion of fixed lists in the editing table. Qt 6.2.1

    Solved qt6
    20
    0 Votes
    20 Posts
    1k Views
    M
    @JonB Yes, I asked because this question is related to the first. Sorry if I confused you. I displayed text data using the displayText() method. Thank you all very much!
  • invalid conversion error in signal connection

    Solved
    15
    0 Votes
    15 Posts
    1k Views
    jsulmJ
    @agmar I don't know your design, so don't know why message_arr needs to be global. I doubt it really has to. It is really bad design if you're changing a global variable in many places in your app. You should rethink the design.
  • Why do UI elements resize different rates?

    Unsolved
    7
    0 Votes
    7 Posts
    479 Views
    ?
    @thetruejoyofcode everything depends on how you do size your components. For example, if you size an item to be 100x50px for example, it will always be 100x50px what ever the size of your window, this item will never be resized. If on the other hand you specify your item to be half the width and height of the parent window, it will always be resized to the half of the window. In fact it is strongly dependent on whether you size your item in an absolute or relative manner.