Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Problem With frameless windows Qdark Style

    Solved
    10
    0 Votes
    10 Posts
    607 Views
    faduF
    @mrjj said in Problem With frameless windows Qdark Style: FramelessWindow *framelessWindow = new FramelessWindow ; @mrjj yes it is Thank you very much for your wonderful explanation. The problem has been solved as you explained
  • Cannot get small size of QListWidget

    Unsolved
    8
    0 Votes
    8 Posts
    915 Views
    mrjjM
    @SGaist well, it keeps this limit when run [image: wWBVHd.png] I was first thinking it must be due to QMainWindow but it's then odd same limits design and run-time considering in Designer, the MainWindow is not in effect as such. one can force it ith setMaximumHeight but It's a puzzle for me what actually sets this.
  • Looping non-visible object creation

    Unsolved
    6
    0 Votes
    6 Posts
    366 Views
    jeremy_kJ
    @Phando said in Looping non-visible object creation: @Phando A little more on the actual creation, referencing after fact aside. How do I reference the repeater index inside the delegate? Use the index property. For example: import QtQuick 2.12 import QtQuick.Window 2.12 Window { width: 640 height: 480 Column { anchors.fill: parent Repeater { id: repeater model: 5 delegate: Text { text: index } } } } All that makes sense and thank you for the links. It isn't working for me even when I hard code the values for 'index'. I think the issue is that the objects are not being created as children of the root. Repeater delegate instances are children of the Repeater's parent. Take the previous example and change text: index to text: parent === repeater.parent. From what I have found, the alias modifier changes the scope of the objects. In this case the alias is nested one additional level. I don't understand this. Can you provide an example? Is there a way to add the objects to the root after they are created? An object can be imperatively created that is parented to the root, or assigned to a property. It's not a route that I would recommend. I feel where things are going wrong is later in my code when I have to reference the created objects by their string name. Wire { from: "%surface%.pads.1"; to: "PadFX0" } //maybe //Wire { from: "%surface%.pads.1"; to: "Wrapper.PadFX0" } Is using a string to object lookup a requirement of the interface, or is this a result of not knowing how to get a more direct reference to the object?
  • LGPL for commercial proprietary library

    Unsolved
    5
    0 Votes
    5 Posts
    430 Views
    SGaistS
    @Gourmet said in LGPL for commercial proprietary library: @SGaist said in LGPL for commercial proprietary library: Felgo seems to do it. What is most interesting - Are you sure Felgo uses LGPL instead of commercial Qt license? I don't know. A question you should ask them.
  • Fresh install 5.15: Could not load the Qt platform plugin "xcb"

    Solved
    6
    0 Votes
    6 Posts
    9k Views
    mrjjM
    @PuddleGlum_1 sudo apt update sudo apt install libxcb-xinerama0 works for me ? I saw a post where poster also have to install sudo apt install -y -q libxkbcommon-x11-0 sudo apt install -y -q libxcb-image0 sudo apt install -y -q libxcb-keysyms1 sudo apt install -y -q libxcb-render-util0 sudo apt install -y -q libxcb-icccm4 sudo apt install -y -q build-essential libgl1-mesa-dev
  • System Tray is not displayed

    Unsolved
    2
    0 Votes
    2 Posts
    138 Views
    SGaistS
    Hi, AFAIK, by default, root does not have access to the X session of the standard user (which is a good thing). It's usually a bad idea to have an application running as root by a normal user.
  • __qt__passive_

    Solved
    11
    0 Votes
    11 Posts
    881 Views
    mrjjM
    @MehdiGh Perfect. I also learned a new thing as I have not seen that "tag" before but did fight with the same issue for a Designer plugin.
  • Switching from QDialog to another QDialog window

    Unsolved
    11
    0 Votes
    11 Posts
    996 Views
    mrjjM
    @LT-K101 Hi Super. Could you then mark this a solved using the topic button in first post and maybe also post the link to SO for the solution ?
  • How to pass NULL to INOUT parameter for stored procedure?

    Unsolved
    1
    0 Votes
    1 Posts
    99 Views
    No one has replied
  • Why does Qt offline installer require internet?

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    jsulmJ
    @pip010 You can get it using online installer. Offline installer is now only for commercial users for newer versions as far as I know.
  • SubDir-Project Problems!

    Unsolved
    7
    0 Votes
    7 Posts
    254 Views
    G
    @jsulm : It works now....great! Thanks! I'll use a simple pointer for now, but I'll definitely take a look at the PIMPL approach, it looks interesting!
  • Qt Designer - expose children widget in Custom Container Widget Plugin

    Unsolved
    4
    0 Votes
    4 Posts
    323 Views
    AxelViennaA
    @MehdiGh If I get you right, your multipagewidget is just like a QTabWidget turned to the left by 90°. What you mean by "child" is actually a tab, each of which you want to populate with different widgets. You have to look at the implementation of your custom widget. It seems to consist of a QListView, as displayed on the left side. This list view is (probably) on the same hierarchy level as your pages, which seem to be something like a QFrame or so. You need to handle the switching between pages on the level of the QListView inside your custom widget. The most straight forward implementation is to size all the frames (or whatever it is) equally, put them on the same position and hide/unhide them programmatically depending on the current row of the QListView. But I guess you know that. If you want to fully integrate your custom widget in Qt Designer, you have to implement a plugin as described here. IMHO that is a lot of work for a QTabWidget turned to the left by 90°. I would consider populating your pages programmatically or going with a generic QTabWidget.
  • How to get the translations from ID based qm files?

    Unsolved
    6
    0 Votes
    6 Posts
    515 Views
    mrjjM
    @Rajashekara-V Hi Im not sure either as we look up by id. so we have no source text to compare to. But you can have it add say "! " in front of non translated text so you can mark it thaat way, if that is helpful to your case.
  • QJsonObject isUndefined is never undefined when applied to a copy

    Unsolved
    4
    0 Votes
    4 Posts
    511 Views
    L
    Both proposed solutions work. Plus, I understood why it went wrong. Thank you!
  • Reset chart to original position after moving/zoom

    Unsolved qt5.4 qtchart
    1
    0 Votes
    1 Posts
    427 Views
    No one has replied
  • QCheckBox and QDataWidgetMapper

    Solved
    8
    0 Votes
    8 Posts
    838 Views
    P
    OK, as I found out you CANNOT control the state of checkbox via model. Quite unfortunate. On the previous point about how to handle the 3state of QCheckBox (why a 3state to begin with) the solution seems a complete overkill, again every unfortunate that QDataWidgetMapper does not support it by default. Unlike QCombobox, similar issue, where one can opt for banding different property: dataWidgetMapper->addMapping(combo, columnInTheModel, "currentIndex"); such constructs seems not possible with QCheckbox.
  • What can cause Qt app to start process

    Unsolved
    6
    0 Votes
    6 Posts
    417 Views
    ?
    @jsulm said in What can cause Qt app to start process: And your app does really not enter main()? I can see process with icon in task manager , but debugger is not stepping into main() for some reason. No widget gets displayed.
  • How install QT on disck D (no C)

    Solved
    4
    0 Votes
    4 Posts
    825 Views
    V
    I change my directory for the temp file and it's work ! Thank's for your help !
  • QTcpSocket Write not Working

    Solved
    5
    0 Votes
    5 Posts
    353 Views
    E
    Figured it out. I ran into a similar issue a while ago...should have realized it sooner. The server only takes UTF-8 encoding for commands. [image: 8294076e-a8e8-4c87-864c-52c148f2cfe9.PNG]
  • App doesn't build on certain OS

    Unsolved
    2
    0 Votes
    2 Posts
    220 Views
    jsulmJ
    @WesLow said in App doesn't build on certain OS: I am really lost on what to do Please post the code causing this error, else only guessing is possible...