Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • How can i add new row to the existing Qtablewidget?

    Solved qtablewidget qmouseevent
    6
    0 Votes
    6 Posts
    21k Views
    U
    @mrjj How to add and delete rows in table by clicking spinbox up and down arrow? Please help me through python code.
  • "single left click " on the QListWidget "item" runs BOTH slots

    Unsolved
    2
    0 Votes
    2 Posts
    217 Views
    C
    The list issues both signals because both conditions have occurred (probably also issued currentItemChanged(), currentRowChanged() and itemClicked()). If you only want to act on one then only connect to one. The current item and the current selection are not the same thing in general. You can turn off/adjust tracking the selection with setSelectionMode()
  • Access Border

    Unsolved
    3
    0 Votes
    3 Posts
    330 Views
    Z
    Yes, you are completely right my QVBoxLayout that holds them is called MainLayout. But calling self.MainLayout.setSpacing(0) doesn't do anything. I am not sure if I understood the documentary correctly though, this might not be the right way to call this method. Anyways, i got it to work with the .setContentsMargin(0,0,0,0) method, for anyone who might have the same issue. Thanks a lot for the quick help!
  • Issue with Qt WinRT app on Qt 5.15.2

    Solved
    10
    0 Votes
    10 Posts
    654 Views
    Cobra91151C
    Hello! I have created my own tool called winrtdeploy to copy assets directory and the manifest file from Qt directory. winrtdeploy.exe --source=$$(QTDIR)/bin/assets --destination=$$shell_quote($$DESTDIR) --verbose Now, this issue is resolved. Thank you.
  • What does "got fallback qt version 0x50f02" mean ?

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    D
    i have the same problem. had same problem for over a year now just running in debugger Qt Creator 9.0.1
* Based on Qt 6.4.0 (Clang 13.0 (Apple), arm64) macOS Ventura on M1 see this bug
  • High DPI and QOpenGLWindow

    Unsolved
    1
    0 Votes
    1 Posts
    252 Views
    No one has replied
  • Layout problem

    Unsolved
    5
    0 Votes
    5 Posts
    371 Views
    M
    @SGaist Hard to understand, but ok I'll try to understand Thanks.
  • Create QLineEdit on QListWidget when double clicked

    Unsolved
    2
    0 Votes
    2 Posts
    234 Views
    SGaistS
    Hi, Two things that stand out: use the function pointer version of connect to use it with a lambda your lambda will just add an empty item to your list widget and leak a QLineEdit object every time you call it.
  • QML: Make multiple custom controls independent

    Unsolved
    1
    0 Votes
    1 Posts
    128 Views
    No one has replied
  • QMake list of all parameters, commands and variables in sources. Where to find?

    Unsolved
    4
    0 Votes
    4 Posts
    350 Views
    SGaistS
    Hi, If you want absolutely everything, the best is to read qmake's sources.
  • Is possible to have a widget that doesnt scroll in a QScrollArea?

    Unsolved
    3
    0 Votes
    3 Posts
    242 Views
    jeremy_kJ
    Place a separate QScrollBar on the right side. Register it via QAbstractScrollArea::setVerticalScrollBar().
  • Creating QML plugin for QSensor

    Solved
    3
    0 Votes
    3 Posts
    286 Views
    S
    Actually this did help. Thanks a lot. I had find_package(Qt6 6.2 REQUIRED COMPONENTS Sensors ) in the CMakeLists.txt of the plugin but after adding 'Sensors' to the 'REQUIRED COMPONENTS' in the CMakeLists.txt of the project using the plugin it works now.
  • Calculate width of QML Item

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    JoeCFDJ
    @Stefanoxjx Great you made it. The empty item is supposed to work as spacer. You may need it down the road.
  • How to add a new version of QT to the official QT folder?

    Solved
    6
    0 Votes
    6 Posts
    450 Views
    R
    Ok I see how to do it thank you for your help :)
  • How to show window on modal window?

    Unsolved
    3
    0 Votes
    3 Posts
    510 Views
    M
    @jsulm When focus in/out event occured for lineedit widgets on modal, i am emitting signals. Connecting it to a slot in mainwidget.cpp. the slot: mainwidget.cpp: void MainWidget::KeyboardOpen() { keyboard->show(); } void MainWidget::KeyboardClose() { keyboard->close(); } mainwidget.h Keyboard *keyboard = new Keyboard; It opens the keyboard widget. I want the keyboard widget allways on top with allowing interaction with modal window.
  • lots of same thread '??? (in QtCore) load address'

    Unsolved
    2
    0 Votes
    2 Posts
    234 Views
    jsulmJ
    @CornerDoor said in lots of same thread '??? (in QtCore) load address': my qt built process has 125 threads like that Do you mean your Qt application spawns 125 threads?
  • QEvent not triggered

    Solved
    3
    0 Votes
    3 Posts
    238 Views
    M
    @Bonnie said in QEvent not triggered: ui->lineEditTop->installEventFilter(this); Hey man you are the life saver. thank you very much:) I was searching this for several days.
  • What is best way to add on screen keyboard to application?

    Unsolved
    6
    0 Votes
    6 Posts
    502 Views
    M
    @SGaist Yes I tried it. It didnt work and keyboard started working weirdly. not all buttons were fitting the screen.
  • Wanted Advise on project concept

    Unsolved
    4
    0 Votes
    4 Posts
    302 Views
    Chris KawaC
    K&R is a book about C. C has no classes or inheritance (unless you ugly fake it), so the term doesn't originate from there. C++ is multiparadigm language. OOP is just one of supported styles. So is functional, data oriented and others. C++ was inspired by a lot of languages before it, like Simula, Smaltalk, Modula-2 and others. Different people related to different languages used different terms to mean the same things. It's just your normal word soup. Get used to it as it's not going away. Subclassing, inheriting and deriving means the same thing. Subclass, child class and derived class means the same thing. Superclass, parent class and base class means the same thing. As for the original question - my personal opinion is that neither copying nor modifying existing projects is a good application design method. I would say you should rather design your app first, list steps needed to implement exactly what you had in mind and then implement it step by step, verifying at each step if it matches your design. You can use examples and code snippets for each step, but mostly as a guidance and not as the basis for everything. Copy/pasting and modifying entire example projects as pieces of your software is not a good way to write an application. Renaming stuff and gluing together things that were never meant as anything more than simple examples of some API usage is a way to make so called "spaghetti code" that's only good for throwing away.
  • Bluetooth QT connect - yet another opinions wanted

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